New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reload(): Unload dynamic libraries #119
Comments
Normally, the dynamic library has the same name as the package, so this should work:
But in case there are multiple libraries in that path, it might be better to search the
It appears that most packages have library files with the same name as the package. But there are some exceptions. A
|
This code should unload all the loaded libraries from a given package:
I tried experimenting with plyr, but it appears that it can't be unloaded because devtools depends on testthat, which depends on stringr, which depends on plyr. Also, it appears that some packages are nice enough to have an
|
Implemented in #137. |
Presently, to unload and reload a compiled library during development, you can do this:
It would be good to automate the unloading process by making
reload()
automatically do it. ThedynLibs()
function might be helpful for finding the path of the loaded library.This should also be tested on Windows and Linux. According to
?dyn.load
, unloading won't work on Solaris.The text was updated successfully, but these errors were encountered: