R/zzz.R

Defines functions .onLoad tidync_default_options

tidync_default_options <- function() {
  list(tidync.large.data.check = TRUE)
}


.onLoad <- function(libname, pkgname) {
  op <- options()
  rdo <- tidync_default_options()
  toset <- !(names(rdo) %in% names(op))
  if (any(toset)) options(rdo[toset])
  
  invisible()
}
r-gris/tidync documentation built on April 5, 2022, 10:55 a.m.