[Rd] MS Windows: R does not escape quotes in CLI options the same way as Rterm and Rscript

Henrik Bengtsson henr|k@bengt@@on @end|ng |rom gm@||@com
Wed Dec 15 22:48:18 CET 2021


On MS Windows 10, the following works:

> Rscript --vanilla -e "\"abc\""
[1] "abc"

and also:

> Rterm --vanilla --no-echo -e "\"abc.txt\""
[1] "abc.txt"

whereas attempting the same with 'R' fails;

> R --vanilla --no-echo -e "\"abc.txt\""
Error: object 'abc' not found
Execution halted

I get this with R 4.1.2 and R Under development (unstable) (2021-12-14
r81376 ucrt).

Is this a bug?

/Henrik



More information about the R-devel mailing list