[R-pkg-devel] pkg check: SyntaxError: break must be inside loop or switch
Ivan Krylov
kry|ov@r00t @end|ng |rom gm@||@com
Wed Oct 11 09:40:32 CEST 2023
В Tue, 10 Oct 2023 16:36:31 +0200
Charles Driver <cdriver.aus using gmail.com> пишет:
> SyntaxError: break must be inside loop or switch
This looks like an error coming from a JavaScript engine or from a
JavaScript-derived language:
https://github.com/blld/libecc/blob/88877a46ba9b0a47567aa999a4380b9e793783a8/src/main.c#L714
https://github.com/ynezz/openwrt-ucode/blob/5163867269fc04fa01ec5e9f8df3384c933339f2/compiler.c#L2930https://github.com/Bobris/Njsast/blob/930f59a9694432580a7b1367680c56672cfe4cd2/Njsast/Compress/LoopControlFinderTreeWalker.cs#L34
(Most modern implementations say "_unlabeled_ break must be inside loop
or switch", but this may come from an older version.)
This seems to have nothing to do with Stan either; at the very least I
cannot find this exact error message in https://github.com/stan-dev.
When R complains about a wrongly placed `break`, it also looks
differently:
break
# Error: no loop for break/next, jumping to top level
An infrastructure hiccup on Win-Builder?
--
Best regards,
Ivan
More information about the R-package-devel
mailing list