Skip to content

Running a R file at a specific time each day

5 messages · Christofer Bogaso, Whit Armstrong, Bhupendrasinh Thakre +2 more

#
Hello again,

My query may look quite generic, however at this point of time I just
want explain my problem. I am hopeful that somebody can help me.

Let say I have a script file 'Script.R'. Now I want R to run this
script file each day at a specific time, and store the result (the
calculation for the result are already in that script file) in excel
(or may be csv file) for each day.

Is there in possibility to achieve that?

Thanks and regards,
#
man cron

or something more robust:
http://jenkins-ci.org/

-Whit


On Mon, Feb 11, 2013 at 1:51 PM, Christofer Bogaso
<bogaso.christofer at gmail.com> wrote:
#
Depends on system you are working. 

Mac : Automator
Windows : save the script in the folder where python is installed and then run it through command prompt.
Linux and unix specific : cron jobs.

As Mac is unix underneath so cron will work there also but never tried it.

Best Regards,

Bhupendrasinh Thakre
Sent from my iPhone
On Feb 11, 2013, at 1:02 PM, Whit Armstrong <armstrong.whit at gmail.com> wrote:

            
#
cron does work just fine on the Mac, and will work the same way as in
Linux, except (almost certainly) for the path to R itself.
2 days later