[Rd] Inconsistent behavior for the C AP's R_ParseVector() ?
|g@ut|er @end|ng |rom gm@||@com
Sat Nov 30 20:04:25 CET 2019
The behavior of
SEXP R_ParseVector(SEXP, int, ParseStatus *, SEXP);
defined in `src/include/R_ext/Parse.h` appears to be inconsistent depending
on the string to be parsed.
Trying to parse a string such as `"list(''=1+"` sets the
`ParseStatus` to incomplete parsing error but trying to parse
`"list(''=123"` will result in R sending a message to the console
(followed but a crash):
R[write to console]: Error: attempt to use zero-length variable
nameR[write to console]: Fatal error: unable to initialize the JIT***
stack smashing detected ***: <unknown> terminated
Is there a reason for the difference in behavior, and is there a workaround ?
[[alternative HTML version deleted]]
More information about the R-devel