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

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to