Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Install should fail if there's an error copying DLL on Windows #113
If a package is currently loaded on Windows and you try to install over it, some of the files will be copied over, but the DLL will not.
Real-world example here: r-lib/scales#101
When I try to use
And when I try to install it using
I looked into this again and unfortunately
We could do something like
library(glue) system2("Rterm.exe", c( "-e", shQuote("withCallingHandlers(tools:::.install_packages(commandArgs(TRUE)), warning = function(e) stop(e))"), "--args", "glue_1.3.0.tar.gz" ) )
Which does convert the warnings to errors, but it seems somewhat fragile.
Other approaches; such as checking the packages for integrity by md5 hashing seem out of scope for remotes right now.