R/zzz.R

Defines functions .onLoad

.odin <- new.env(parent = emptyenv())


.onLoad <- function(libname, pkgname) {
  .odin$version <- utils::packageVersion("odin")
  .odin$model_cache_c <- R6_ring_cache$new(getOption("odin.cache_size", 30L))
}

Try the odin package in your browser

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

odin documentation built on April 28, 2022, 9:05 a.m.