Skip to content

Commit

Permalink
lint & style
Browse files Browse the repository at this point in the history
  • Loading branch information
zsigmas committed Jun 5, 2024
1 parent b0b9491 commit c95b3d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion inst/validation/utils-validation.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#' 2. Copy that variable and the contents of if block to tests/testthat/setup.R
#' (If you are using the template this may already be in place for you)

if(!exists("package_name")) stop("package name must be in the environment when this script is sourced")
if (!exists("package_name")) stop("package name must be in the environment when this script is sourced")

if (FALSE) {
# validation (S)
Expand Down
2 changes: 1 addition & 1 deletion inst/validation_templates/tests/testthat/setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ vdoc <- local({
source(utils_file_path, local = TRUE)[["value"]]
})
specs <- vdoc[["specs"]]
# validation (F)
# validation (F)
4 changes: 2 additions & 2 deletions tests/testthat/setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
vdoc <- local({
# ##########
# package_name is used # INSIDE # the sourced file below
# ##########
# ##########
package_name <- read.dcf("../../DESCRIPTION")[, "Package"]
utils_file_path <- system.file("validation", "utils-validation.R", package = package_name, mustWork = TRUE)
source(utils_file_path, local = TRUE)[["value"]]
})
specs <- vdoc[["specs"]]
# validation (F)
# validation (F)

0 comments on commit c95b3d8

Please sign in to comment.