R/zzz.R

Defines functions .onLoad

# This file contains the .onLoad() function to handle initialization tasks
# and ensure imports from xgboost and ranger are recognized.
.onLoad <- function(libname, pkgname) {

  # CRAN OMP THREAD LIMIT
  Sys.setenv("OMP_THREAD_LIMIT" = 1)

  # Reference the functions to ensure they are recognized
  xgboost::xgboost
  ranger::ranger
}

Try the ldmppr package in your browser

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

ldmppr documentation built on April 4, 2025, 12:45 a.m.