-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing bug when a config only points to other config files and Switch…
… to using simple glob instead of regexp (#119) * Fixing issue in internal_run() when config points to other config files. * Switch to using simple glob instead * Update vignette to reflect the use of simple glob * Updating news and description * Updating NEWS and DESCRIPTION * Set n_workers = 2 in tests --------- Co-authored-by: Troejelsgaard <[email protected]>
- Loading branch information
1 parent
b01df29
commit 9310cc0
Showing
12 changed files
with
35 additions
and
33 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,6 +1,6 @@ | ||
Package: whirl | ||
Title: Logging package | ||
Version: 0.1.5.9000 | ||
Version: 0.1.6 | ||
Authors@R: c( | ||
person("Aksel", "Thomsen", , "[email protected]", role = c("aut", "cre")), | ||
person("Lovemore", "Gakava", , "[email protected]", role = "aut"), | ||
|
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
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
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 @@ | ||
steps: | ||
- name: "Run adam mk400 programs" | ||
paths: | ||
- "mk400*.R" | ||
|
||
|
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,4 +1,4 @@ | ||
steps: | ||
- name: "Run all R programs" | ||
paths: | ||
- "*.r|R" | ||
- "*.R" |
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
13 changes: 5 additions & 8 deletions
13
tests/testthat/test-read_regexp.R → tests/testthat/test-read_glob.R
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,25 +1,22 @@ | ||
test_that("read_regexp() finds the right files", { | ||
test_that("testing read_glob()", { | ||
|
||
# A single file | ||
|
||
test_script("success.R") |> | ||
read_regexp() |> | ||
read_glob() |> | ||
expect_equal(test_script("success.R")) | ||
|
||
# All R files in a directory | ||
|
||
test_script("") |> | ||
file.path("*.R") |> | ||
read_regexp() |> | ||
read_glob() |> | ||
expect_match("\\.R$") |> | ||
length() |> | ||
expect_gt(1) | ||
|
||
# Error when file does not exist | ||
|
||
test_script("") |> | ||
file.path("fake_program.R") |> | ||
read_regexp() |> | ||
expect_error() | ||
read_glob() |> | ||
expect_message() | ||
|
||
}) |
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