R/zzz.R

Defines functions .onLoad

.onLoad <- function(libname, pkgname) {
  op <- options()
  op.bikeCadHr <- list(
    bCadHr.path = "~/R-dev",
    bCadHr.install.args = "",
    bCadHr.name = "Craig Mohn",
    bCadHr.desc.author = '"Craig MOhn <[email protected]> [aut, cre]"',
    bCadHr.desc.license = "GPL 3",
    bCadHr.desc.suggests = NULL,
    bCadHr.desc = list(),
    bCadHr.fit.fn.time.parse = "%Y-%m-%d-%H-%M-%S",
    bCadHr.fit.fn.lead = "",
    bCadHr.fit.fn.trail = "",
    bCadHr.gpx.fn.time.parse = "%m_%d_%Y %I_%M_%S %p",
    bCadHr.gpx.fn.lead = "",
    bCadHr.gpx.fn.trail = "_history"
  )
  toset <- !(names(op.bikeCadHr) %in% names(op))
  if(any(toset)) options(op.bikeCadHr[toset])

  invisible()
}
CraigMohn/rideReadGPS documentation built on March 29, 2020, 5:25 a.m.