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()
}
dleutnant/influxdbr documentation built on May 8, 2020, 12:43 p.m.