https://github.com/trinker/make_task
A minimal Example for Scheduling Windows Tasks with R
https://github.com/trinker/make_task
Last synced: over 1 year ago
JSON representation
A minimal Example for Scheduling Windows Tasks with R
- Host: GitHub
- URL: https://github.com/trinker/make_task
- Owner: trinker
- Created: 2015-02-10T05:24:06.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-12-07T17:27:55.000Z (over 10 years ago)
- Last Synced: 2025-02-28T21:57:25.964Z (over 1 year ago)
- Language: R
- Size: 2.93 KB
- Stars: 34
- Watchers: 9
- Forks: 22
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Make_Task
A Minimal Example for Scheduling Windows Tasks with R
Also see:
- [Blog Post](https://trinkerrstuff.wordpress.com/2015/02/11/scheduling-r-tasks-via-windows-task-scheduler/)
- [Video](https://www.youtube.com/watch?v=UDKy5_SQy2o)
### Update
Using...
```
@echo off
R CMD BATCH C:\Users\Tyler\Desktop\Make_Task\task.R
```
makes strong assumptions about where R is located and if it's on the user's path. As [@apwheele](https://trinkerrstuff.wordpress.com/2015/02/11/scheduling-r-tasks-via-windows-task-scheduler/#comment-1553) points out using the full path name to run a [batch file](http://www.statmethods.net/interface/batch.html) is more reliable.
```
@echo off
"C:\R\R-3.2.2\bin\x64\R.exe" CMD BATCH C:\Users\Tyler\Desktop\Make_Task\task.R
```
If the path of your R file has spaces in it, make sure to enclose the path in quotes otherwise the code won't run:
```
@echo off
"C:\R\R-3.2.2\bin\x64\R.exe" CMD BATCH "C:\Users\Tyler\Desktop\Some Other Path\task.R"
```