Skip to main content Link Search Menu Expand Document (external link)

Procedure 13: Unloading a Package

Navigate to the end of the script and create a new line:

img.png

Type the detach() function as:

detach("package:ggplot2", unload = TRUE)

img_1.png

Run the line of script to the console:

img_2.png

The package has now been removed from the R session and the script is essentially, tidying itself up.


Jube™. © Jube Holdings Limited 2022 to present.