I've been using data.table 1.11.8 within a packrat project with no issue. After updating to 1.12.0 I get the following error on package load:
Error: package or namespace load failed for ‘data.table’:
.onLoad failed in loadNamespace() for 'data.table', details:
call: fun(libname, pkgname)
error: This data.table installation appears to be faulty; tools::checkMD5sums returned FALSE. Please close all R sessions and reinstall data.table.
After downgrading back to 1.11.8 the error disappears. I've tested this on other people's machines so I'm pretty confident this is not particular to my system. I have not experienced this issue with other packages either. For that reason I believe this is an issue of the latest data.table version and not a problem with packrat, but I might be wrong.
Here is how I've managed to reproduce the problem (on Windows 10):
First create a new project in RStudio and open it, then run the following code:
install.packages("packrat") # Install packrat 0.5.0 if needed
packrat::init() # Initialize a packrat library
install.packages("data.table") # Install latest version 1.12.0 of data.table
packrat::snapshot() #Take a snapshot of the current library
library(data.table) # Attempt to load the package
Here's the output of sessionInfo():
R version 3.5.2 (2018-12-20)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=Spanish_Spain.1252 LC_CTYPE=Spanish_Spain.1252 LC_MONETARY=Spanish_Spain.1252
[4] LC_NUMERIC=C LC_TIME=Spanish_Spain.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.5.2 tools_3.5.2 packrat_0.5.0
Thanks for your help! Hope this can be resolved in upcoming versions.
I've been using data.table 1.11.8 within a packrat project with no issue. After updating to 1.12.0 I get the following error on package load:
After downgrading back to 1.11.8 the error disappears. I've tested this on other people's machines so I'm pretty confident this is not particular to my system. I have not experienced this issue with other packages either. For that reason I believe this is an issue of the latest data.table version and not a problem with packrat, but I might be wrong.
Here is how I've managed to reproduce the problem (on Windows 10):
First create a new project in RStudio and open it, then run the following code:
Here's the output of
sessionInfo():Thanks for your help! Hope this can be resolved in upcoming versions.