R/onLoad.R

Defines functions .onAttach .onLoad

.onLoad <- function(libname, pkgname) {
    options(datatable.fread.dec.experiment=FALSE)
}

.onAttach <- function(libname, pkgname) {
    if (interactive()) {
        w <- uninstalled_formats()
        if (length(w)) {
            msg <- "The following rio suggested packages are not installed: %s\nUse 'install_formats()' to install them"
            packageStartupMessage(sprintf(msg, paste0(sQuote(w), collapse = ", ")))
        }
    }
}

Try the rio package in your browser

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

rio documentation built on Nov. 22, 2021, 9:07 a.m.