R/pkg.R

DEenv <- new.env()

.onAttach <- function(...){
    if(interactive()){
        startnow <- FALSE
        if(is.null(getOption("DataEntry.autostart"))){
            startnow <- TRUE
        } else {
            if(getOption("DataEntry.autostart") == TRUE)
                startnow <- TRUE
        }
        if(startnow){
            packageStartupMessage(paste0("\nDataEntry ",
                                         as.character(utils::packageVersion("DataEntry")), "\n",
                                         gettext("If necessary, type 'DataEntry()' to start the application again.",
                                                 domain = "R-DataEntry"), "\n"))
            DataEntry()
        }
    }
}

Try the DataEntry package in your browser

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

DataEntry documentation built on May 2, 2019, 9:20 a.m.