R/zzz.R

Defines functions .onLoad

# nocov start
# .onload ----------------------------------------------------------------------

# The functions below define the model information. These access the model
# environment inside of parsnip so they have to be executed once parsnip has
# been loaded.

.onLoad <- function(libname, pkgname) {
  # This defines discrim_linear in the model database
  make_discrim_linear_MASS()
  make_discrim_linear_mda()
  make_discrim_linear_sda()
  make_discrim_linear_sparsediscrim()

  # This defines discrim_quad in the model database
  make_discrim_quad_MASS()
  make_discrim_quad_sparsediscrim()

  # This defines discrim_regularized in the model database
  make_discrim_regularized()

  # This defines discrim_flexible in the model database
  make_discrim_flexible()

  # This defines naive_Bayes in the model database
  make_naive_Bayes_klaR()
  make_naive_Bayes_naivebayes()
}

# nocov end
tidymodels/discrim documentation built on Oct. 24, 2024, 2:46 p.m.