R/zzz.R

Defines functions .onAttach .onLoad

.onAttach <- function(libname, pkgname) {
    packageStartupMessage("Welcome to rspecies package.")
}


.onLoad <- function(libname, pkgname) {
    op <- options()
    op.rspecies <- list(rspecies.path = "~/R", rspecies.install.args = "", rspecies.name = "Enrique Del Callejo-Canal",
        rspecies.desc.author = "\"Enrique Del Callejo-Canal <edelcallejoc@gmail.com> [aut, cre]\"",
        rspecies.desc.license = "GPL-3", rspecies.desc.suggests = NULL, rspecies.desc = list())
    toset <- !(names(op.rspecies) %in% names(op))
    if (any(toset))
        options(op.rspecies[toset])

    invisible()
}
edelcallejoc/rspecies documentation built on May 27, 2019, 7:25 a.m.