R/zzz.R

Defines functions xgboost_dummy .onLoad

.onLoad <- function(libname, pkgname) {
  # This defines maxent in the model database
  current <- parsnip::get_model_env()
  # only set the model if it does not exist yet
  # this allows to use devtools::load_all() repeatedly
  if (!any(current$models == "maxent")) {
    make_maxent()
  }
}

# bogus function to avoid xgboost warning
xgboost_dummy <- function() {
  xgboost::xgb.get.config()
}

Try the tidysdm package in your browser

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

tidysdm documentation built on Dec. 14, 2025, 1:06 a.m.