R/zzz.R

Defines functions .onLoad

# inspired by http://r-pkgs.had.co.nz/r.html
.onLoad <- function(libname, pkgname) {
  # load options available
  op <- options()
  
  # set option
  op.influxdbr <- list(
    influxdbr.progress_bar = TRUE
  )
  
  # get the difference to available options
  toset <- !(names(op.influxdbr) %in% names(op))
  
  # save options
  if (any(toset)) options(op.influxdbr[toset])
  
  invisible()
}
crab1234/influxdbr- documentation built on Jan. 12, 2020, 6:28 p.m.