R/zzz.R

Defines functions .onUnload

#------------------------------------------------
#' @title Structured Wright Fisher Simulator for Malaria Genetics
#'
#' @description Unique features of the malaria life-cycle and transmission
#'   dynamics requires extensions of typical population genetic simulators.
#'   Using a spatial discrete-loci, discrete-time structured Wright Fisher model, we
#'   simulate malaria population genetics forwards in time. Users are then able
#'   to capture the full Ancestral Recombination Graph.
#'
#' @docType package
#' @name polySimIBD
NULL

#------------------------------------------------
#' @useDynLib polySimIBD, .registration = TRUE
#' @importFrom Rcpp sourceCpp
NULL

#------------------------------------------------
# unload DLL when package is unloaded
#' @noRd
.onUnload <- function(libpath) {
  library.dynam.unload("polySimIBD", libpath)  # nocov
}
nickbrazeau/polySimIBD documentation built on Sept. 26, 2024, 5:29 p.m.