R/zzz.R

Defines functions .onAttach .onLoad

# Mainly setting options and startup messages


.onAttach <- function(libname, pkgname) {
    #packageStartupMessage("Make sure you correctly set the timezone with Sys.setnev(TZ = 'UTC')")
}


.onLoad <- function(libname, pkgname) {
    # OPTIONS
    op <- options()
    op.cronr <- list(
        lubridate.fasttime = TRUE,
        digits.secs = 3
    )
    options(op.cronr)
    #on.exit(options(op), add = TRUE)

    ### Setting up the environment
    #Sys.setenv(TZ = "UTC")

    invisible()
}
henfiber/cronr documentation built on May 17, 2019, 3:42 p.m.