devtools (version 1.2)

unload: Unload a package

Description

Unload a package

Usage

unload(pkg = ".")

Arguments

pkg
package description, can be path or package name. See as.package for more information

Examples

Run this code
# Unload package that is in current directory
unload(".")

# Unload package that is in ./ggplot2/
unload("ggplot2/")

# Can use inst() to find the path of an installed package
# This will load and unload the installed ggplot2 package
library(ggplot2)
unload(inst("ggplot2"))

Run the code above in your browser using DataCamp Workspace