How to unload a package without restarting R
To solve r unload library, Try this using ?detach: detach("package:ans", unload=TRUE) Alternatively you can also use unloadNamespace command unloadNamespace("ans") For multiple versions of a package loaded at once use detach_package
Answered Jun 14, 2021 · 1.8K Views Read answer →