Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Fails to install rlang DLL on Windows #131
I saw this warning when I build rlang by the RStudio's build button on my local Windows:
This kind of "Permission denied" is a common error on Windows. Maybe this is because I'm using the DLL as the package is loaded, so, usually, restarting the R session will make things work. But, for rlang, it won't.
In my understanding, this is because devtools or remotes package imports rlang in their dependency chains. Can I install rlang cleanly on Windows?
Now I use the workaround bellow:
devtools::build('.') # (restart R session) install.packages("../rlang_0.x.x.tar.gz", repos = NULL)
Hi, I saw the same warning with
But, if I execute
However, if RStudio is the cause, why did I succeed with
Basically the issue is if rlang is loaded in any R session. So even if it is not loaded in the current session, but it is loaded in another one, the installer will fail to update the DLL file.
I don't think RStudio can do much about this. The devtools toolchain will have a better package installer soon, it will hopefully fix this issue.
I know. But, this time, RStudio is the only session I concsiously used. So, I suspect RStudio hooks something that needs rlang when the package is loaded by
To be clear, I'm not complaining about remotes, rlang, or RStudio because it's natural the packages or RStudio can't do this nice, as you wrote, if the DLL is used outside of the current session.
Thanks for the good news about the new toolchain :)