Skip to content

Commit

Permalink
fix(test-rd_files): fix locating rd files
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusSkytte authored Dec 21, 2023
1 parent 73bd1f5 commit 30062b0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/testthat/test-0_rd_files.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ test_field_in_documentation <- function(field) {
# folder structures during testing, so we need to account for these differences

# Look for the source of .Rd files
pkg_path <- base::system.file("", package = testthat::testing_package())

help_dir <- file.path(pkg_path, "help")
man_dir <- file.path(pkg_path, "man")

help_dir <- system.file("help", package = testthat::testing_package())
man_dir <- system.file("man", package = testthat::testing_package())

Check warning on line 14 in tests/testthat/test-0_rd_files.R

View workflow job for this annotation

GitHub Actions / ⚙️ Run all AEF-DDF workflows / lint / 🖋️ Perform linting

file=tests/testthat/test-0_rd_files.R,line=14,col=1,[trailing_whitespace_linter] Trailing whitespace is superfluous.
testthat::expect_true(any(dir.exists(c(help_dir, man_dir))))

if (checkmate::test_directory_exists(help_dir)) {
Expand Down

0 comments on commit 30062b0

Please sign in to comment.