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

查看:13
本文介绍了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", repos = NULL, type = "win.binary")将软件包安装到C:/Users/hp/Documents/R/win-library/3.5"(因为lib"未指定)包‘data.table’成功解包并检查MD5总和库(数据表)错误:data.table"的包或命名空间加载失败:包data.table"由具有不同内部结构的 R 版本安装;它需要重新安装才能与此 R 版本一起使用

谁能帮帮我?我该怎么办?

解决方案

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

<小时>

上一个答案:

data.table 1.10.4-3(2017 年 10 月)在 CRAN 上已处于错误状态几个月,这非常合理地阻止了二进制文件的可用.我们已经在几个月前及时修复了 dev 中的问题,只需要将下一个版本发布到 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天全站免登陆