Skip to content

Commit f1773fc

Browse files
committed
use rlang's install checker
1 parent 9a2401d commit f1773fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/add-in/gadget.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ parsnip_spec_add_in <- function() {
33
# check installs
44

55
libs <- c("shiny", "miniUI", "rstudioapi")
6-
is_inst <- purrr::map_lgl(libs, parsnip:::is_installed)
6+
is_inst <- rlang::is_installed(libs)
77
if (any(!is_inst)) {
88
missing_pkg <- libs[!is_inst]
99
missing_pkg <- paste0(missing_pkg, collapse = ", ")

0 commit comments

Comments
 (0)