Unload (detach) a loaded R package

- 1 min

A long the process of creating and testing R packages I usually need to unload a loaded package. The function to perform this operation is called detach and must be run as:

detach(name="package:rexposome", unload=TRUE)

The name argument needs to be filled with package: and followed by the name of the package to be unload, that can be found at search().

Carles Hernandez-Ferrer

Carles Hernandez-Ferrer

Bioinformatics, data analysis and software development

rss facebook twitter github gitlab youtube mail spotify lastfm instagram linkedin google google-plus pinterest medium vimeo stackoverflow reddit quora quora