Skip to content

Commit

Permalink
Add debugging informtaion to test ouput
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAxthelm committed Mar 20, 2024
1 parent 0239085 commit 0317d14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/test-get_package_info.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ test_that("get_individual_package_info collects information for local packages c
)
new_lib <- withr::local_tempdir()
withr::local_libpaths(new_lib)
print(.libPaths())

Check warning on line 50 in tests/testthat/test-get_package_info.R

View workflow job for this annotation

GitHub Actions / R Package Checks / lintr / lint

file=tests/testthat/test-get_package_info.R,line=50,col=9,[undesirable_function_linter] Function ".libPaths" is undesirable. As an alternative, use withr::with_libpaths() for a temporary change instead of permanently modifying the library location.
testthat::capture_output( #make pak quiet
pak::local_install(root = file.path(dest_dir), dependencies = FALSE) #nolint: nonportable_path_linter
)
Expand Down

0 comments on commit 0317d14

Please sign in to comment.