-
Notifications
You must be signed in to change notification settings - Fork 991
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
data.table::update.dev.pkg() warning or error #4403
Comments
It is actually the same problem as I have seen on CRAN windows checks today. I was hoping it is a local CRAN issue related to new 4.0.0 setup, it seems it is not. |
I have the same issue on Windows 10 using R 3.6.2. Edit: Actually using R 3.6.2 > sessionInfo()
R version 3.6.2 (2019-12-12)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17763)
Matrix products: default
locale:
[1] LC_COLLATE=English_United Kingdom.1252
[2] LC_CTYPE=English_United Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.6.2 Using install.packages("data.table", type="source", repos="https://Rdatatable.gitlab.io/data.table") works smoothly. |
We've seen this before on CRAN checks several times; the workaround there is that we ping Uwe and he reruns. CRAN checks are run in parallel. I don't think data.table is reinstalled by CRAN each time but sometimes it is, and when it does, if another package that uses data.table is running its checks at the same time, the install fails because the .dll is in use by that other package. Prior discussions with Uwe and others, if I remember correctly, are essentially that this is a Windows feature and there is no known way to alleviate it (other than perhaps adding to the error message a hint to the user to close all other R sessions and perhaps reboot too). Windows locks its dll's. Unlike Linux and MacOS which have a mechanism to allow several versions of the same I don't think it is R 4.0.0 per se. It's just that the event of R 4.0.0 release triggers people to update who perhaps do not update very often. Could the people who are having troubles ensure that all R sessions are shutdown, and then try upgrading/installing data.table again? If you have a .RProfile, and that .RProfile loads data.table, then you have to turn that off otherwise data.table loads on startup and the lock is opened on that dll. This applies to every R package with a .dll as far as I know. |
I am able to reproduce problem. To install latest master please use this for now install.packages("data.table", repos="https://Rdatatable.gitlab.io/data.table") Just for the record, building from source on windows for R 4.0.0 ## download and install
# https://cran.r-project.org/bin/windows/base/R-4.0.0-win.exe
# https://cran.r-project.org/bin/windows/Rtools/rtools40-x86_64.exe
set PATH=C:\rtools40\usr\bin;%PATH%
R ## ensure R 4.0.0
Sys.which("make") ## ensure rtools40 path
# install 1.12.8
install.packages("data.table", type="source", repos="https://cran.r-project.org")
# install devel
install.packages("data.table", type="source", repos="https://Rdatatable.gitlab.io/data.table") |
@mattdowle |
I have tried twice and got this every time:
and
also
|
@drag05 install.packages warnings seems like issue with your connection. It doesn't download complete zip archive. AFAIK it is not related to the issue reported in this thread, and should be possible to "fix" by a retry (or more retries, maybe router restarting can help as well?). |
Thank you for the tip! I was inside my VPN. Now it works both ways - it seems:
and
So, I guess - no VPN allowed which may not be that good ... |
Thank you for your prompt replies! I wonder if I should open a new issue involving VPN. |
I will re-open this issue, as I was able to reproduce the problem on windows. The issue was not just connection, but windows that locks dll, unloading namespace before reinstalling seems to remove the lock. |
In my case the |
when you call |
@jangorecki |
not functions, but this particular function, because it attempts to upgrade this namespace |
I have miswritten. I meant it could happen to other namespaces too. Couldn't it? |
It is related only to reinstalling pkg. Using |
data.table v 1.12.8
:applying
gives the following message in R v. 4.0.0, R Studio v 1. 2.5042 both with Admin rights:
The text was updated successfully, but these errors were encountered: