R/zzz.R

Defines functions .onLoad

.onLoad <- function(libname, pkgname) {
    today <- as.character(Sys.Date(), format = "%Y-%m-%d-%H:%M")
    ## invisible(
    ##     loggit::setLogFile(
    ##                 file.path(getwd(),
    ##                           sprintf("%s_%s.json", libname, today))
    ##               , confirm = FALSE
    ##             )
    ## )
    invisible(
        loggit::setLogFile(
                    file.path(getwd(),
                              sprintf(get_SBC_config()$log_filename_prefix, today))
                  , confirm = FALSE
                )
    )
}
bnaras/SBCpip documentation built on May 5, 2019, 6:54 p.m.