[R-sig-finance] Help with running R in auto-mode

Dirk Eddelbuettel edd at debian.org
Sat Feb 18 21:40:21 CET 2006


Mahesh,

On 18 February 2006 at 12:15, Mahesh Krishnan wrote:
| I'd like help with daily scheduling task of  running an R  script (in
| windows) at a specific time every day.  I looked at several help files, but
| was unable to get this going.

With all due respect, this really has nothing to do with R and Finance, and
is therefore not relevant to the list.

Further, it would even be off-topic on r-help.
 
| Windows has a scheduling task feature available. So I can make it open the R
| interface at a specific time of the day. However, how do you make R run a
| one line script e.g : source(file.R).
| Conversely, if anyone has successfully been able to run a script from the
| command line interface of windows, would you please describe how to go about
| it. If you prefer we can take this discussion off-line.

Please see the R FAQ for the frequently asked question of how to run R in
BATCH mode. The R-Windows FAQ may have additional pointers.

In short, R CMD BATCH is your friend, but there are other ways too. Under
Cygwin etc you can also write shell scripts that pipe into R (so-called
"here" documents).

help.search("batch") would have pointed you there, RSiteSearch("R in batch
mode") also leads to numerous hits -- 460 when I just tried it.

Regards, Dirk

-- 
Hell, there are no rules here - we're trying to accomplish something. 
                                                  -- Thomas A. Edison



More information about the R-sig-finance mailing list