>>>>> "r" == ronggui  <ronggui.hu...@gmail.com>
>>>>>     on Wed, 1 Apr 2009 16:00:16 +0800 writes:

    r> you can use source() to Read R Code from a File.

yes, but that's not "in the command line". 
Slightly more closely to the OP's question:

      R CMD BATCH test.R
or
      Rscript test.R

(or   " r  test.R "   if you have installed  'littler' )

Martin Maechler, ETH Zurich 

    r> 2009/4/1 minben <minb...@gmail.com>:

    >>  Suppose I have written a R program and saved it in test.R . How can I
    >> call the program in the command line?

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to