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.

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

Arguments

...

Not used.

Value

Returns nothing.

Author

Henrik Bengtsson

See also

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

Examples

if (FALSE) { # \dontrun{
pkg <- Package("boot")
load(pkg)
print(isLoaded(pkg))
unload(pkg)
print(isLoaded(pkg))

} # }