Skip to content
Back to formatted view

Raw Message

Message-ID: <43508498.6040202@metrak.com>
Date: 2005-10-15T04:24:56Z
From: paul sorenson
Subject: batch file execution
In-Reply-To: <8ee3db370510141948o3bb91048h282bbc36b23336c5@mail.gmail.com>

jun xu wrote:
> I am new to R and really like to get a handle of basics in short period of
> time. What I am trying to do is get myself a list of must-do's (read in
> data, batch execution, delimiters, basic modeling commands) in R as in Stata
> or SAS. I am just wondering how to execute a R batch file in RGui. Suppose I
> have a script file (like do file in stata, or sas file in SAS) under
> c:\whatever.R, how can I execute it using commands (not drop down menu) in
> RGui? In stata, would be something like

If I am not mistaken the command is:
 > source("whatever.R")

>  do c:\whatever.do
>  How about in R. I tried the "R CMD BATCH('h:/whatever.R'), but it didn't
> work. Any help would be greatly appreciated.

paul sorenson