itep-data / R-questions

:question: :hand: Ask your R questions here
0 stars 0 forks source link

How do I unload a package? #1

Open dKvale opened 5 years ago

dKvale commented 5 years ago

If I've already loaded a package with library(dplyr) is there a way to turn it off? Thanks!

kmellick commented 5 years ago

To completely remove it from your computer you can use, remove.packages(). There shouldn't be a lot of need to remove packages. To just unload it from your current R session you can use detach(). Within the parentheses, you'll want to type in the packages you are detaching or removing.