Learn R Programming

taskscheduleR (version 1.1)

taskcheduler_stop: Stop the run of a specific task which is running in the Windows task scheduler.

Description

Stop the run of a specific task which is running in the Windows task scheduler.

Usage

taskcheduler_stop(taskname)

Arguments

taskname

the name of the task to stop. See the example.

Value

the system call to schtasks /End

Examples

Run this code
# NOT RUN {
myscript <- system.file("extdata", "helloworld.R", package = "taskscheduleR")
taskscheduler_create(taskname = "myfancyscript", rscript = myscript, 
 schedule = "ONCE", starttime = format(Sys.time() + 10*60, "%H:%M"))

taskcheduler_runnow("myfancyscript")
Sys.sleep(5)
taskcheduler_stop("myfancyscript")


taskscheduler_delete(taskname = "myfancyscript")
# }

Run the code above in your browser using DataLab