R/options_load.R

Defines functions .onLoad

## set default options for thermoreg_options:
.onLoad <- function(libname, pkgname) {
  op <- options()
  op.thermoreg <- list(
    thermoreg.temp_scale = "celsius",
    thermoreg.press_scale = "torr"
  )
  toset <- !(names(op.thermoreg) %in% names(op))
  if (any(toset)) options(op.thermoreg[toset])

  invisible()
}
arcaldwell49/thermoreg documentation built on March 19, 2022, 3:38 a.m.