View source: R/detach_all_packages.R
detach_all_packages | R Documentation |
I found this in some example code online and thought that it was super handy seeming and wanted to save it for later.
detach_all_packages()
https://github.com/tomasu909/Tidy-Tuesday-Submissions/blob/master/tidytuesday2.Rmd
## Not run:
# Load some packages
library(dplyr)
library(tibble)
library(ggplot2)
library(readr)
# List of loaded packages -- before
(.packages())
# Detach all packages
detach_all_packages()
# List of loaded packages -- after
(.packages())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.