An open API service indexing awesome lists of open source software.

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

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"
```