R/check.R

# check_predictions...
# if (!(".predictions" %in% colnames(x))) {
#   rlang::abort(
#     paste0(
#       "The `.predictions` column does not exist. ",
#       "Refit with the control argument `save_pred = TRUE` to save predictions."
#     )
#   )
# }
#
# check_colname
# if (!(y_name %in% names(original_data))) {
#   rlang::abort(glue::glue("'{y_name}' is not a column in the orignal data"))
# }

Try the shinymodels package in your browser

Any scripts or data that you put into this service are public.

shinymodels documentation built on Nov. 18, 2021, 1:12 a.m.