R/additive_init.R

#' @import mgcv
#' @import parsnip
#' @importFrom dplyr between bind_cols
#' @importFrom purrr map_lgl
#' @importFrom rlang !!! abort call2 enquo eval_tidy expr fn_fmls_names
#' @importFrom stats qt
#' @importFrom tibble tibble
#' @importFrom utils globalVariables getFromNamespace

# -------------------------------------------------------------------------

utils::globalVariables(
  c(".pred", "group", "level", "new_data", "object")
)

# -------------------------------------------------------------------------
# The generic for predict_raw is not exported so make one here (if needed)

if (!any(getNamespaceExports("parsnip") == "predict_raw")) {
  predict_raw <- function(object, ...) {
    UseMethod("predict_raw")
  }
}

Try the additive package in your browser

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

additive documentation built on June 17, 2022, 1:05 a.m.