R – data.table package in R 3.5 does not install

data.tabler

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?

Best Answer

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

Related Topic