detach_package | R Documentation |
Detaches a loaded R package cleanly from the current session. This is useful when reinstalling or updating a package during development.
detach_package(pkg)
pkg |
Character string of package name. The name of the package to detach. |
If the specified package is attached multiple times (e.g., via multiple 'library()' calls), it will be fully detached. A message is displayed indicating whether the detachment occurred.
Invisibly returns TRUE
if the package was detached, or FALSE
if it was not attached.
library
, detach
## Not run:
detach_package("ggplot2")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.