Defines functions .onLoad .onAttach

.onLoad <- function(libname, pkgname) {
  modules <- paste0("stan_fit4", names(stanmodels), "_mod")
  # message('.onLoad start')
  # print(modules)
  # print(stanmodels)
  for (m in modules) loadModule(m, what = TRUE)
  # message('.onLoad end')

.onAttach <- function(...) {
  packageStartupMessage("- For execution on a local, multicore CPU with excess RAM we recommend calling")
  packageStartupMessage("options(mc.cores = parallel::detectCores())")

Try the DeLorean package in your browser

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

DeLorean documentation built on May 2, 2019, 9:24 a.m.