[R] R CMD BATCH character limit?
Hsiu-Khuern Tang
htang at hpl.hp.com
Wed Feb 2 02:54:26 CET 2005
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.
More information about the R-help
mailing list