R/zzz.R

Defines functions .onUnload .onLoad

jsontools_env <- environment()

.onLoad <- function(...) {
  # s3_register("pillar::pillar_shaft", "json2")

  assign("con", DBI::dbConnect(RSQLite::SQLite(), ":memory:"), envir = jsontools_env)
}

.onUnload <- function(...) {
  DBI::dbDisconnect(con)
}

Try the jsontools package in your browser

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

jsontools documentation built on March 22, 2021, 5:06 p.m.