windows - CMD Batch file to run R code. How can I choose different version of R? -


i have piece of r code want run periodically. use cmd batch file run it. command like:

r cmd batch --vanilla --slave "/mylocaldir/myrcode.r"

i have different version of r installed in windows. version installed particular package works version. need specify version of r need run in cmd command. i'm wondering how can specify that. or can set default r version?

thx!

i solved running scheduled batch job using windows task scheduler.

your latest installed r version default. if want run specific version, call explicitly in call, e.g.

"c:\program files\r\r-2.14.0\bin\x64\r.exe" cmd batch --vanilla --slave "windows not linux path :p.r" 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -