load: Default Load/Unload Functions

Description Usage Arguments Examples

Description

Default Load/Unload Functions

Usage

1
2
3
  onLoad(libname = NULL, pkgname, chname = packageName())

  onUnload(libpath)

Arguments

libname

a character string giving the library directory where the package defining the namespace was found.

pkgname

a character string giving the name of the package.

libpath

a character string giving the complete path to the package.

chname

a character string naming a DLL (also known as a dynamic shared object or library) to load.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#----------
# onLoad
#----------
# in a package namespace:
.onLoad <- function(libname=NULL, pkgname){

	pkgmaker::onLoad(libname, pkgname)

}

#----------
# onUnload
#----------
# in a package namespace:
.onUnload <- function(libpath){

	pkgmaker::onUnload(libpath)

}

pkgmaker documentation built on May 2, 2019, 4:42 p.m.