Skip to content

batch file execution

5 messages · jun xu, paul sorenson, Uwe Ligges

#
jun xu wrote:
If I am not mistaken the command is:
 > source("whatever.R")
paul sorenson
#
sosman wrote:
... or source("c:/whatever.R") if "c:\" is not your current working 
directory.
R CMD BATCH has to be executed from the Windows shell (looks like you 
are running this OS) rather than from within R with the Syntax (if 
called from c:\ and R is in your PATH):
R CMD BATCH whatever.R

Uwe Ligges
#
jun xu wrote:

            
Don't forget to print():

print(mydta[1:5,])

Uwe Ligges