To unload all loaded libraries in R, we can use the detach()
function to detach the libraries from the search path. We can also check the current search path using the search()
function.
Here's an example function to unload all loaded libraries:
main.r241 chars10 lines
To use this function, simply call unload_all_libs()
:
main.r652 chars20 lines
gistlibby LogSnag