Data.table: Cannot install data.table under R 3.5.0

Created on 25 Apr 2018  ·  19Comments  ·  Source: Rdatatable/data.table

I recently updated to R 3.5.0 and can now no longer install data.table.

What should I do?

install.packages("C:/Users/owner/Downloads/data.table_1.10.4-3.tar.gz", repos = NULL, type = "source")
Installing package into ‘C:/Users/owner/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)

  • installing source package 'data.table' ...
    * パッケージ 'data.table' の解凍および MD5 サムの検証に成功しました
    *
    libs

* arch - i386
system(cmd) で警告がありました: 'make' not found
ERROR: compilation failed for package 'data.table'

  • removing 'C:/Users/owner/Documents/R/win-library/3.5/data.table'
    In R CMD INSTALL
    Warning in install.packages :
    installation of package ‘C:/Users/owner/Downloads/data.table_1.10.4-3.tar.gz’ had non-zero exit status

Most helpful comment

same problem, just solved now!
1/ download and install Rtools 3.5.0; don't forget to check the modify PATH option
2/ in R type install.packages("data.table")
3/ you get the message: ..._Package which is only available in source form, and may need
compilation of C/C++/Fortran: ‘data.table’_
4/ then a small window opens, asking you if you want to install from source: click YES
5/ data table is installed from source ..._data.table_1.10.4-3.tar.gz_

now you can load Rcmdr and it works
I hope it will work with you!!!!

All 19 comments

I second that. data.table does not build under the development version of R either.

I am downgrading to R-3.4.4 for the time being.

I had seamless installation of recent data.table and R 3.5.0 built from source on linux. CRAN check logs are not that relevant here because they run 1.10.4-3, so any issues present there might have been resolved already. Are you still have issue installing data.table from sources having Rtools for 3.5.0 installed? You might need to install recent Rtools.

It appears that Rtools is not available for R 3.5.0

install.packages("Rtools")
Installing package into ‘C:/Users/owner/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘Rtools’ is not available (for R version 3.5.0)

@plarson2 look for Rtools on R-project website, it is not a package.

Thanks. I installed the latest Rtools but nothing has changed. I still cannot install data.table.

Same experience here. That is why I downgraded.

Hopefully it will get resolved soon.

@plarson2 did you try to install from source? on windows install.packages will attempt to install from binaries, even when having Rtools installed.

From the .tar ? Yes, tried that.

same problem, just solved now!
1/ download and install Rtools 3.5.0; don't forget to check the modify PATH option
2/ in R type install.packages("data.table")
3/ you get the message: ..._Package which is only available in source form, and may need
compilation of C/C++/Fortran: ‘data.table’_
4/ then a small window opens, asking you if you want to install from source: click YES
5/ data table is installed from source ..._data.table_1.10.4-3.tar.gz_

now you can load Rcmdr and it works
I hope it will work with you!!!!

In addition to above, I had to manually remove an old RBuildTools directory
from the PATH file , and then reinstall RTools35 into the c:\\RTools directory.
Now everything is working for me.

I've added to the stackoverflow issue

Had the same problem. I'm on a Windows 10 machine. This is how I solved it:

  • uninstall rtools via "Add/Remove Programs"
  • remove devtools from your library - remove.packages("data.table")
  • Go to environmental variables and remove all rtools paths (see point 5 in link https://www.biostat.wisc.edu/~kbroman/Rintro/Rwinpack.html) / you need to remove from both "user variables" and "System variables" - I had rtools path in both.
  • download the latest rtools and install
  • In the installation selection menu check the "PATH" - super important
  • once done, go back to environmental variables and check if you can see rtools
  • then in r remove.packages("data.table")
  • library(devtools)
  • install_github("Rdatatable/data.table", build_vignettes=FALSE)
    You should be good to go.....

@JoeFernando if you are building from source you don't need to use devtools::install_github, use

install.packages("data.table", repos="https://Rdatatable.github.io/data.table")

instead.
When you use install_github you always install latest master, when you use our repo you install latest master that passed R CMD check. Unless you are developing data.table the latter should be preferred.

@plarson2 could you try Joe procedure? if it works for you please close this issue.

But @jangorecki this problem is on Windows, where we already have pre-compiled binaries which are much easier. Go straight to suggesting the AppVeyor compiled and tested binary, like I did here :

https://stackoverflow.com/a/50031325/403310

I linked to the tweet there, and included the graphic. See the comments to the answer: Windows users who have upgraded to R 3.5 need to click the R_VERSION=r_devel one and not the the R_VERSION=r_release one. Until AppVeyor updates to R 3.5, and then it won't matter which one they click.

@mattdowle I was not aware that R-devel binaries will work on R 3.5. Good to know

They 'work' but emit a warning that they were built under a different version, so will fail R CMD check for example.

@JoeFernando THANK YOU. Works!

1.11.0 binaries are available on CRAN already.

Some of us on Windows still prefer to build from source to take advantage of machine-specific optimizations.

Was this page helpful?
0 / 5 - 0 ratings