task_stop | R Documentation |
Delete a specific task which was scheduled in the Windows task scheduler.
task_stop(taskname) task_delete(taskname)
taskname |
the name of the task to delete. See the example. |
the system call to schtasks /Delete or /End
## Not run: myscript <- quote(print(Sys.time())) task_create( taskname = "myfancyscript", rscript = myscript, schedule = "ONCE", starttime = format(Sys.time() + 10 * 60, "%H:%M") ) task_runnow("myfancyscript") Sys.sleep(5) task_stop("myfancyscript") task_delete(taskname = "myfancyscript") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.