R/zzz.R

Defines functions .onLoad

# =============================================================================
# zzz.R - Package initialization and registration
# =============================================================================

#' @useDynLib TRexSelector, .registration = TRUE
NULL

.onLoad <- function(libname, pkgname) {
  # Set the Cpp custom temporary directory to R's session temp directory
  # This ensures memory-mapped matrices and temporary files comply with the CRAN policy
  rcpp_set_custom_temp_dir(tempdir())
}

Try the TRexSelector package in your browser

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

TRexSelector documentation built on Nov. 20, 2026, 5:09 p.m.