Is there a limit on the number of characters in an invocation like

R CMD BATCH --opt1=val1 --opt2=val2 ... --save-to=C:\very\long\string 
..\R\script.R

?

I am running R 2.0.1 on Windows XP, and when running a long BATCH
command (about 400--500 characters) the last option gets mangled, as can
be seen from a warning in script.Rout that looks like this:

WARNING: unknown option
+--save-to=C:\very\long\str..\R\script.Rout

Note that "string" is truncated to "str" _and_ concatenated with the
implicit batch output file "..\R\script.Rout".  (The "unknown option"
warning is expected; I am just using commandArgs() within the script to
pick out the arguments.)

I have tried specifying --args before the options, with the same result,
except that the truncation appears earlier.

Thanks in advance for any help!

Best Regards,
Hsiu-Khuern Tang.

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to