[R] Very long console input lines

alessandro.valli@AMD.com alessandro.valli at AMD.com
Wed Sep 17 16:15:02 CEST 2003


Hallo all,

I got a problem executing R in batch-mode via a perl-script (under Win2000) : 
	system ("Rterm.exe --slave --no-save --no-restore \<Rfile.r \>NUL");
The R execution is aborting with syntax error due to very-long lines.
My solution is converting
a <- c("very long string")
to
a <- paste("short string 1",\n
                "short string 2",\n
                      ...,\n
                "short string n")
It is not very elegant ...
Does anybody know a better solution ?

Thank you in advance,
Alessandro Valli




More information about the R-help mailing list