报错信息:
原因:
data.table更新的问题,回到旧版本:
从CRNA中:install.packages("data.table")
安装的是:data.table_1.13.0.tar.gz版本,这个版本报错。
可以手动下载源码,然后手动安装:
wget https://cran.r-project.org/src/contrib/Archive/data.table/data.table_1.12.8.tar.gz
R CMD INSTALL data.table_1.12.8.tar.gz
安装成功:
if [ "" != "Windows_NT" ] && [ `uname -s` = 'Darwin' ]; then install_name_tool -id datatable.so datatable.so; fi
installing to /root/anaconda3/lib/R/library/00LOCK-data.table/00new/data.table/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (data.table)
搞定!