-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update to dev version * Make testthat run in parallel * Update variables to pass tests * Update indiv number of variables * Change exists tests to read * Set an environment var to make testthat use multiple CPUs * Revert changes and deal with NA chi/anon_chi * Update documentation * Style package * Update tests so that they pass * Style package * fix tests * Render `README.md` after changes to the `.Rmd` version * exclude from tests for now --------- Co-authored-by: James McMahon <[email protected]> Co-authored-by: Jennit07 <[email protected]>
- Loading branch information
1 parent
7f98dc7
commit 448b721
Showing
20 changed files
with
194 additions
and
159 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
TESTTHAT_CPUS = 12 |
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,7 +1,7 @@ | ||
Type: Package | ||
Package: slfhelper | ||
Title: Useful functions for working with the Source Linkage Files | ||
Version: 0.10.0 | ||
Version: 0.10.0.9000 | ||
Authors@R: c( | ||
person("Public Health Scotland", , , "[email protected]", role = "cph"), | ||
person("James", "McMahon", , "[email protected]", role = c("aut"), | ||
|
@@ -46,6 +46,7 @@ VignetteBuilder: | |
Remotes: | ||
Public-Health-Scotland/phsmethods | ||
Config/testthat/edition: 3 | ||
Config/testthat/parallel: true | ||
Encoding: UTF-8 | ||
Language: en-GB | ||
LazyData: true | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 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,28 @@ | ||
skip_on_ci() | ||
|
||
|
||
test_that("Episode files are readable", { | ||
# Episode files | ||
expect_true(fs::file_access(gen_file_path("1415", "episode"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("1516", "episode"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("1617", "episode"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("1718", "episode"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("1819", "episode"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("1920", "episode"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("2021", "episode"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("2122", "episode"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("2223", "episode"), mode = "read")) | ||
}) | ||
|
||
|
||
test_that("Individual files are readable", { | ||
expect_true(fs::file_access(gen_file_path("1415", "individual"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("1516", "individual"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("1617", "individual"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("1718", "individual"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("1819", "individual"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("1920", "individual"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("2021", "individual"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("2122", "individual"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("2223", "individual"), mode = "read")) | ||
}) |
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
Oops, something went wrong.