R/zzz.R

# called for the side effects, i.e. for a welcome message
#
.onLoad <- function(lib, pkg){
    packageStartupMessage(
            "------------------------------------------------",
          "\n OpenRepGrid Version ",  utils::packageDescription("OpenRepGrid", field="Version"), 
          "\n Tools for the analysis of repertory grid data",
          "\n For an introduction visit: www.openrepgrid.org",
          "\n------------------------------------------------", 
          appendLF = TRUE)

    # invisible object in workspace to store parameters (TODO)
    .openrepgrid <<- list()
    .openrepgrid$par <- "some parameters to store"
}

# clean up workspace
.onUnload <- function(lib){
    rm(.openrepgrid)
}

Try the OpenRepGrid package in your browser

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

OpenRepGrid documentation built on May 2, 2019, 4:54 p.m.