forked from kevinushey/cronR
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change unit testing from testthat to tinytest. Fix unit test of "/opt…
…" folder
- Loading branch information
Showing
9 changed files
with
36 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
Package: cronR | ||
Type: Package | ||
Title: Schedule R Scripts and Processes with the 'cron' Job Scheduler | ||
Version: 0.5.0 | ||
Authors@R: c(person("Jan", "Wijffels", role = c("aut", "cre", "cph"), email = | ||
"[email protected]"), person("BNOSAC", role = "cph"), person("Kevin", "Ushey", | ||
role = c("cph"), email = "[email protected]")) | ||
Version: 0.5.1 | ||
Authors@R: c( | ||
person("Jan", "Wijffels", role = c("aut", "cre", "cph"), email = "[email protected]"), | ||
person("BNOSAC", role = "cph"), | ||
person("Kevin", "Ushey", role = c("cph"), email = "[email protected]")) | ||
Maintainer: Jan Wijffels <[email protected]> | ||
Description: Create, edit, and remove 'cron' jobs on your unix-alike system. The package provides a set of easy-to-use wrappers | ||
to 'crontab'. It also provides an RStudio add-in to easily launch and schedule your scripts. | ||
URL: https://github.com/bnosac/cronR | ||
Imports: | ||
Imports: | ||
digest | ||
Suggests: | ||
Suggests: | ||
knitr, | ||
rmarkdown, | ||
miniUI, | ||
shiny (>= 0.11), | ||
shinyFiles (>= 0.6.0), | ||
testthat | ||
tinytest | ||
License: MIT + file LICENSE | ||
VignetteBuilder: knitr | ||
OS_type: unix | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
myscript <- system.file("extdata", "helloworld.R", package = "cronR") | ||
|
||
f <- system.file(package = "cronR", "extdata", "helloworld.R") | ||
cmd <- cron_rscript(f) | ||
expect_silent(cron_add(command = cmd, frequency = 'minutely', id = 'abc', description = 'My process 1')) | ||
expect_silent(cron_clear(ask = FALSE)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
path <- "/opt" | ||
if(!is.na(file.info(path)$isdir) && file.access(path, mode = 2)){ | ||
expect_warning( | ||
cronR:::verify_rscript_path(path), | ||
"You do not have write access to the specified Rscript repository path, /opt." | ||
) | ||
} | ||
|
||
expect_warning( | ||
cronR:::verify_rscript_path("/DirClearlyDoesNotExist"), | ||
"The specified Rscript repository path /DirClearlyDoesNotExist does not exist, make sure this is an existing directory without spaces." | ||
) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
if(requireNamespace("tinytest", quietly=TRUE)){ | ||
home <- identical(Sys.getenv("HONEYIMHOME"), "TRUE") || identical(Sys.info()[["nodename"]], "live") | ||
tinytest::test_package("cronR", at_home = home) | ||
} |