R/init.R

Defines functions .onLoad

## On Windows, set TZDIR to the zoneinfo shipped with R
.onLoad <- function(libname, pkgname) {
    if (Sys.info()[["sysname"]] == "Windows" && Sys.getenv("TZDIR") == "") {
        Sys.setenv("TZDIR"=file.path(R.home(), "share", "zoneinfo"))
    }
}

Try the RcppCCTZ package in your browser

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

RcppCCTZ documentation built on Nov. 10, 2022, 5:52 p.m.