R 3.5中的data.table包未安装 [英] data.table package in R 3.5 does not install

查看:199
本文介绍了R 3.5中的data.table包未安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当前正在使用R 3.5(测试版),我的项目中需要data.table程序包,但我的程序包未安装。在这种情况下,谁能帮助我。
安装它时,显示以下错误。


install.packages( data.table)
将软件包安装到 C:/Users/hp/Documents/R/win-library/3.5中
(由于未指定 lib)
---请选择一个CRAN镜像供本次会议使用---
仅以源代码形式提供的软件包,可能需要
的C / C ++ / Fortran编译:'data.table'
这些将不会安装


我也尝试过使用CRAN信息库安装软件包data.table_1.10.4-3.zip。但显示以下错误。


install.packages( C:/Users/hp/Downloads/data.table_1.10.4-3。 zip,存储库= NULL,类型= win.binary)
将软件包安装到'C:/Users/hp/Documents/R/win-library/3.5'
(因为'lib'是
软件包'data.table'成功解压并检查了MD5的总和
库(data.table)
错误:'data.table'的软件包或名称空间加载失败:
软件包 data.table由具有不同内部结构的R版本安装;需要重新安装才能使用此R版本


有人可以帮助我吗?我应该怎么办?

解决方案

更新:data.table 1.11.0在CRAN于2018年5月1日被接受。 / strong>
CRAN二进制文件现在应该在接下来的几天内开始更新。






上一个答案:



data.table 1.10.4-3(2017年10月)在CRAN上处于错误状态已有几个月,这阻止了二进制文件的发布。 ,非常合理。我们已经在几个月前及时解决了开发人员中的问题,只需要将下一个版本发布到CRAN。本质上,这不是CRAN或R 3.5.0的问题。



同时,您可以使用dev中的Windows.zip二进制文件吗?它是为您编译的,不需要任何工具。这个开发版本1.10.5将在CRAN上重命名为1.11.0。其中没有什么东西不会在1.11.0中出现,因此除了实际上还不在CRAN上之外,没有其他风险。




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?

解决方案

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

这篇关于R 3.5中的data.table包未安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆