R/zzz.R

Defines functions .onUnload

## usethis namespace: start
#' @useDynLib discent, .registration = TRUE
## usethis namespace: end
NULL

## usethis namespace: start
#' @importFrom Rcpp sourceCpp
## usethis namespace: end
NULL

#------------------------------------------------
# unload dll when package is unloaded
#' @noRd
.onUnload <- function(libpath) {
  library.dynam.unload("discent", libpath)  # nocov
}
nickbrazeau/discent documentation built on Aug. 30, 2024, 5:17 a.m.