Skip to content

Commit cc30e95

Browse files
committed
Linting
1 parent beee899 commit cc30e95

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

R/engines.R

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@ check_engine <- function(object) {
4242
#' @importFrom utils installed.packages
4343
check_installs <- function(x) {
4444
lib_inst <- rownames(installed.packages())
45-
if(length(x$method$library) > 0) {
45+
if (length(x$method$library) > 0) {
4646
is_inst <- x$method$library %in% lib_inst
47-
if(any(!is_inst)) {
48-
stop("This engine requires some package installs: ",
49-
paste0("'", x$method$library[!is_inst], "'", collapse = ", "))
47+
if (any(!is_inst)) {
48+
stop(
49+
"This engine requires some package installs: ",
50+
paste0("'", x$method$library[!is_inst], "'", collapse = ", ")
51+
)
5052
}
5153
}
5254
}

0 commit comments

Comments
 (0)