taskscheduler_runnow: Immediately run a specific task available in the Windows task...

View source: R/taskscheduleR.R

taskscheduler_runnowR Documentation

Immediately run a specific task available in the Windows task scheduler.

Description

Immediately run a specific task available in the Windows task scheduler.

Usage

taskscheduler_runnow(taskname)

Arguments

taskname

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

Value

the system call to schtasks /Run

Examples

## 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"))

taskscheduler_runnow("myfancyscript")
Sys.sleep(5)
taskscheduler_stop("myfancyscript")


taskscheduler_delete(taskname = "myfancyscript")

## End(Not run)

taskscheduleR documentation built on July 9, 2023, 5:24 p.m.