Learn R Programming

R.oo (version 1.26.0)

unload.Package: Unloads a package

Description

Unloads a package. This is an alternative way to use detach() to unload a package. If the package is not loaded, it will quietly return.

Usage

# S3 method for Package
unload(this, ...)

Value

Returns nothing.

Arguments

...

Not used.

Author

Henrik Bengtsson

See Also

*load(). *isLoaded(). search(). For more information see Package.

Examples

Run this code
if (FALSE) {
pkg <- Package("boot")
load(pkg)
print(isLoaded(pkg))
unload(pkg)
print(isLoaded(pkg))

}

Run the code above in your browser using DataLab