From ea6ebee197192c37950f92a321fa232ace3f3917 Mon Sep 17 00:00:00 2001 From: Jan Wijffels Date: Fri, 16 Apr 2021 14:59:21 +0200 Subject: [PATCH] Added rmarkdown as dependency --- DESCRIPTION | 6 +++--- inst/NEWS | 3 +++ man/taskscheduler_create.Rd | 29 +++++++++++++++++++---------- 3 files changed, 25 insertions(+), 13 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index ec831c0..e74c32c 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -6,10 +6,9 @@ Description: Schedule R scripts/processes with the Windows task scheduler. This Authors@R: c(person("Jan", "Wijffels", role = c("aut", "cre", "cph"), email = "jwijffels@bnosac.be"), person("BNOSAC", role = "cph"), person("Oliver", "Belmans", role = c("cph", "aut"))) Maintainer: Jan Wijffels License: AGPL-3 -Version: 1.4 +Version: 1.5 URL: https://github.com/bnosac/taskscheduleR OS_type: windows -Date: 2018-10-24 Imports: data.table, tools, @@ -17,7 +16,8 @@ Imports: VignetteBuilder: knitr Suggests: knitr, + rmarkdown, miniUI, shiny, testthat -RoxygenNote: 6.0.1 +RoxygenNote: 7.1.1 diff --git a/inst/NEWS b/inst/NEWS index 5aae6de..302ac45 100644 --- a/inst/NEWS +++ b/inst/NEWS @@ -1,6 +1,9 @@ Package: taskscheduleR ================ +Version: 1.5 [2021-04-16] +- Add rmarkdown to Suggests in DESCRIPTION + Version: 1.4 [2018-10-24] - Rename taskcheduler_stop to taskscheduler_stop and taskcheduler_runnow to taskscheduler_runnow diff --git a/man/taskscheduler_create.Rd b/man/taskscheduler_create.Rd index 79f9db3..52a6d4b 100644 --- a/man/taskscheduler_create.Rd +++ b/man/taskscheduler_create.Rd @@ -4,14 +4,23 @@ \alias{taskscheduler_create} \title{Schedule an R script with the Windows task scheduler.} \usage{ -taskscheduler_create(taskname = basename(rscript), rscript, - schedule = c("ONCE", "MONTHLY", "WEEKLY", "DAILY", "HOURLY", "MINUTE", - "ONLOGON", "ONIDLE"), starttime = format(Sys.time() + 62, "\%H:\%M"), - startdate = format(Sys.Date(), "\%d/\%m/\%Y"), days = c("*", "MON", "TUE", - "WED", "THU", "FRI", "SAT", "SUN", 1:31), months = c("*", "JAN", "FEB", - "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC"), - modifier, idletime = 60L, Rexe = file.path(Sys.getenv("R_HOME"), "bin", - "Rscript.exe"), rscript_args = "", schtasks_extra = "", debug = FALSE) +taskscheduler_create( + taskname = basename(rscript), + rscript, + schedule = c("ONCE", "MONTHLY", "WEEKLY", "DAILY", "HOURLY", "MINUTE", "ONLOGON", + "ONIDLE"), + starttime = format(Sys.time() + 62, "\%H:\%M"), + startdate = format(Sys.Date(), "\%d/\%m/\%Y"), + days = c("*", "MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN", 1:31), + months = c("*", "JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", + "NOV", "DEC"), + modifier, + idletime = 60L, + Rexe = file.path(Sys.getenv("R_HOME"), "bin", "Rscript.exe"), + rscript_args = "", + schtasks_extra = "", + debug = FALSE +) } \arguments{ \item{taskname}{a character string with the name of the task. Defaults to the filename. Should not contain any spaces.} @@ -57,7 +66,7 @@ as the location of the rscript } \examples{ myscript <- system.file("extdata", "helloworld.R", package = "taskscheduleR") -cat(readLines(myscript), sep = "\\n") +cat(readLines(myscript), sep = "\n") \dontrun{ ## Run script once at a specific timepoint (within 62 seconds) @@ -97,6 +106,6 @@ taskscheduler_delete(taskname = "myfancyscript_withargs_b") ## Have a look at the log mylog <- system.file("extdata", "helloworld.log", package = "taskscheduleR") -cat(readLines(mylog), sep = "\\n") +cat(readLines(mylog), sep = "\n") } }