R/zzz.R

Defines functions .onLoad

## ## .First.lib is meaningful for S-Plus only, not for R.
## ## It doesn't get defined in S-Plus when it is inside the if.R() statement
## ## .First.lib <- function(library, section) { ## S-Plus notation
## .First.lib <- function(libname, pkgname) {  ## R notation, to be used by S-Plus
##   invisible(options(HH.ROOT.DIR=paste(libname, pkgname, sep="/")))
##   attach(hh.new("HH.Data"))
## }

## if.R(r={
  .onLoad <- function(libname, pkgname) {
    options(HH.ROOT.DIR=paste(libname, pkgname, sep="/"))
   }
##   rm(.First.lib) ## not meaningful in R, hence removed
## }, s={}
##      )

Try the HH package in your browser

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

HH documentation built on Aug. 9, 2022, 5:08 p.m.