[R] Command Line Programs
    pallier 
    pallier at lscp.ehess.fr
       
    Fri Mar  5 00:11:43 CET 2004
    
    
  
Kissell, Robert [EQRE] wrote:
>How can I set up a file that will run several lines of R code? For example, in Fortran and DOS this used to be done via a batch file, and in MatLab I would write the code and save it in a script file, e.g., Test.m.
>  
>
 From within R:
source('yourscript.R',echo=T)
 From the command line (under unix/Linux):
R BATCH yourscript.R
or
R <yourscript.R
--
Christophe
    
    
More information about the R-help
mailing list