R/zzz.R

Defines functions .onLoad

.onLoad <- function(libname, pkgname) {
    op <- options()
    opOce <- list(
        oceAbbreviateTimeRange = TRUE,
        oceDebug = 0,
        oceDrawTimeRange = TRUE,
        oceEOS = "unesco", # or "unesco"
        oceMar = c(3, 3, 2, 2),
        oceMgp = c(2.0, 0.7, 0),
        oceTimeFormat = "%Y-%m-%d %H:%M:%S",
        oceTz = "UTC",
        oceUnitBracket = "[", # or "("
        webtide = "/usr/local/WebTide"
    )
    toset <- !(names(opOce) %in% names(op))
    if (any(toset)) {
        options(opOce[toset])
    }
}

Try the oce package in your browser

Any scripts or data that you put into this service are public.

oce documentation built on May 29, 2024, 7:48 a.m.