R/zzz.R

Defines functions terminate .onLoad

.onLoad <- function(...) {
  do.call(set, .__settings__)
  if (is_rendering_context()) {
    set(render = TRUE)
    bib_init()
    terminate()
  }
}

terminate <- function() {
  withr::defer(bib_write(), envir = parent.frame(5L))
}

Try the pakret package in your browser

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

pakret documentation built on Oct. 30, 2024, 9:26 a.m.