Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
391 views
in Technique[技术] by (71.8m points)

data.table package in R 3.5 does not install

I am currently using R 3.5 (beta version) and I need data.table package in my project but my package does not install. Can anyone help me in the case. It shows me following errors when i install it.

install.packages("data.table") Installing package into ‘C:/Users/hp/Documents/R/win-library/3.5’ (as ‘lib’ is unspecified) --- Please select a CRAN mirror for use in this session --- Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘data.table’ These will not be installed

I had also tried to install the package data.table_1.10.4-3.zip using CRAN repository. but it shows following errors.

install.packages("C:/Users/hp/Downloads/data.table_1.10.4-3.zip", repos = NULL, type = "win.binary") Installing package into ‘C:/Users/hp/Documents/R/win-library/3.5’ (as ‘lib’ is unspecified) package ‘data.table’ successfully unpacked and MD5 sums checked library(data.table) Error: package or namespace load failed for ‘data.table’: package ‘data.table’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version

Can anyone help me? What should I do?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Update: data.table 1.11.0 was accepted on CRAN 1st May 2018. CRAN binaries should now start to update over the next few days.


Previous answer:

data.table 1.10.4-3 (Oct 2017) has been in error status for some months on CRAN which prevents the binaries being made available, very reasonably. We have fixed the problems in dev in good time months ago and just need to get the next release to CRAN. It is not a problem of CRAN or of R 3.5.0, per se.

In the meantime, could you use Windows.zip binary from dev? It is compiled for you and you don't need any tools. This dev version 1.10.5 is what will be renamed to 1.11.0 on CRAN. There is nothing in it that won't be in 1.11.0 so there is no addition risk, other than it not actually being on CRAN yet.

https://twitter.com/MattDowle/status/976890741543677952

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
...