Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

load

Default Load/Unload Functions


Description

Default Load/Unload Functions

Usage

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.

chname

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

libpath

a character string giving the complete path to the package.

Examples

# in a package namespace:
.onLoad <- function(libname=NULL, pkgname){

	pkgmaker::onLoad(libname, pkgname)

}

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

	pkgmaker::onUnload(libpath)

}

pkgmaker

Development Utilities for R Packages

v0.32.2
GPL (>= 2)
Authors
Renaud Gaujoux [aut, cre]
Initial release
2020-10-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.