[R] input arguments in a file into rscript

Wensui Liu liuwensui at gmail.com
Sat Oct 13 23:16:57 CEST 2012


dear listers,

with "rscript", i know how to feed arguments by command line directly,
e.g. "Rscript test.r 10 20". however, if i saved all arguments in a
file, how do i make rscript to take arguments in this file?  "Rscript
test.r < input.txt" doesn't seem to work for me.
(ps: i am using windows)

thanks so much!



More information about the R-help mailing list