Skip to content

Commit

Permalink
Use rlang::is_installed to avoid issues with packages that are availa…
Browse files Browse the repository at this point in the history
…ble, but cannot be loaded.
  • Loading branch information
alexzwanenburg committed May 24, 2024
1 parent d484a1e commit ecbf961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/TestDataCreators.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ test_data_package_installed <- function(outcome_type) {
"count" = "MASS"
)

if (!is_package_installed(data_packages[[outcome_type]])) run_test <- FALSE
if (!rlang::is_installed(data_packages[[outcome_type]])) run_test <- FALSE

if (!run_test) {
rlang::inform(
Expand Down

0 comments on commit ecbf961

Please sign in to comment.