-
Notifications
You must be signed in to change notification settings - Fork 761
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
If rlang have newer source version for windows, install_github could fail because of locking #2223
Comments
You might find this issue helpful, for this case and just in general as a Windows user: |
Yes I knew I often need to restart R session for package loading/unloading errors. I did restart session before each command. With the commands I shown above, I just install rlang but didn't load it. I also restarted the R session right before running To verify it again, I just started from scratch again, still same result. The issue is as I described, devtools will install rlang when option "CRAN only" is selected, even after user chose not to install source later. Interestingly, using remotes::install_github don't have this problem. |
I think I knew why. With However rlang is not loaded so remotes can install it again without problem. With devtools, rlang is loaded by devtools (even I restarted R session, didn't load devtools, only used I think I met this problem before. Whenever there is a rlang newer source version in windows, I met this problem with devtools::install_github. I have to install the source version to solve this. This is not a big problem for me, but our webapp was supposed to be used many users that not too familiar with R, they will not be able to handle this kind of problems (they probably cannot install Rtools in windows and install package from source too, which will bring more problems). |
rlang is used by devtools, so even though you don't load it, the use of |
I changed the title to better reflect the issue. The problem now is
The temporary solution is to ask user to use remotes instead, but I think the logic can be improved and solve this kind of problem all together. I will submit a issue in remotes since it should belong to remotes. |
I have rlang 0.4.5 binary installed
while installing a package with
install_github
, I chose to only update CRAN packages,then it will ask me
I chose Not to install from source, then it will download 0.4.5 and try to install it again, even I already have 0.4.5 installed. In the end the package installation will fail.
I cannot pass this failure loop unless I chose to install rlang 0.4.6 from source.
I think the problem is, once the process scheduled to install 0.4.6, even user chose not to install from source, it will try to install binary version even there is a same version binary package installed already. Then somehow this will cause problem.
Either don't try to install the same version binary, or fix the problem of installing same version binary again will fix this.
The text was updated successfully, but these errors were encountered: