Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions R/aaa_models.R
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ check_pred_info <- function(pred_obj, type) {

check_pkg_val <- function(pkg) {
if (rlang::is_missing(pkg) || length(pkg) != 1 || !is.character(pkg))
rlang::abort("Please supply a single character vale for the package name.")
rlang::abort("Please supply a single character value for the package name.")
invisible(NULL)
}

Expand Down Expand Up @@ -591,7 +591,7 @@ set_fit <- function(model, mode, eng, value) {
dplyr::filter(engine == eng & mode == !!mode) %>%
nrow()
if (has_engine != 1) {
rlang::abort(glue::glue("The combination of '{eng}' and mode '{mode}' has not",
rlang::abort(glue::glue("The combination of '{eng}' and mode '{mode}' has not ",
"been registered for model '{model}'."))
}

Expand All @@ -601,7 +601,7 @@ set_fit <- function(model, mode, eng, value) {
nrow()

if (has_fit > 0) {
rlang::abort(glue::glue("The combination of '{eng}' and mode '{mode}'",
rlang::abort(glue::glue("The combination of '{eng}' and mode '{mode}' ",
"already has a fit component for model '{model}'."))
}

Expand Down