[R] 'Rscript -e' and stdout() puzzle
Benjamin Tyner
btyner at gmail.com
Fri Jun 24 02:31:16 CEST 2011
Hello,
I am curious to know why the output of
Rscript -e "cat(R.version.string,stdout())"
includes a trailing " 1", whereas
Rscript -e "cat(R.version.string)"
does not. I have tried various mechanisms to subvert this behavior, such as
Rscript -e "invisible(con<-stdout()); cat(R.version.string, con);
rm(con); q()"
but the trailing " 1" remains.
Thanks,
Ben
More information about the R-help
mailing list