R/zzz.R

Defines functions .onLoad .onUnload

.onLoad <- function(libname, pkgname) {
  ## Registration of parallel backend
  if (isTRUE(getOption("ppstatParallel"))) {
    registerParBackend()
  }  else {
    registerParBackend(backend = "sequential")
  }
}

.onUnload <- function(libpath) {
  library.dynam.unload("ppstat", libpath)
}

Try the ppstat package in your browser

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

ppstat documentation built on May 2, 2019, 5:26 p.m.