Skip to content

Commit 1100ad3

Browse files
committed
Fixes for #289 abd #292
1 parent 8e1ba7d commit 1100ad3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/engines.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,12 @@ check_installs <- function(x) {
4242
if (length(x$method$libs) > 0) {
4343
is_inst <- map_lgl(x$method$libs, is_installed)
4444
if (any(!is_inst)) {
45+
missing_pkg <- x$method$libs[!is_inst]
46+
missing_pkg <- paste0(missing_pkg, collapse = ", ")
4547
rlang::abort(
4648
glue::glue(
4749
"This engine requires some package installs: ",
48-
glue::glue_collapse(glue::glue("'{x}'"), sep = ", ")
50+
glue::glue_collapse(glue::glue("'{missing_pkg}'"), sep = ", ")
4951
)
5052
)
5153
}

0 commit comments

Comments
 (0)