Skip to content

Commit

Permalink
\() lambda not available
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico committed Jan 15, 2025
1 parent 972e788 commit 2a28912
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/helper.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ skip_if_not_utf8_locale <- function() {
}

safe_load_help_db <- function() {
help_db <- tryCatch(tools::Rd_db("lintr"), error = \(e) NULL)
help_db <- tryCatch(tools::Rd_db("lintr"), error = function(e) NULL)
# e.g. in dev under pkgload::load_all()
if (length(help_db) == 0L) {
help_db <- tryCatch(tools::Rd_db(dir = testthat::test_path("..", "..")), error = \(e) NULL)
help_db <- tryCatch(tools::Rd_db(dir = testthat::test_path("..", "..")), error = function(e) NULL)
testthat::skip_if_not(length(help_db) > 0L, message = "Package help corrupted or not installed")
}
help_db
Expand Down

0 comments on commit 2a28912

Please sign in to comment.