R/zzz.R

Defines functions .onLoad .onAttach

.onAttach <- function(...) {
  pkg_desc <- utils::packageDescription("flevr")
  packageStartupMessage(paste0(
    "flevr version ", pkg_desc$Version,
    ": ", pkg_desc$Title
  ))
}

.onLoad <- function(...) {
  # set thread limit for xgboost to pass CRAN check
  Sys.setenv("OMP_THREAD_LIMIT" = 1)
}

Try the flevr package in your browser

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

flevr documentation built on June 22, 2024, 7:33 p.m.