安装新版本的data.table(特别是来自Rforge的1.8.11) [英] Installing new version of data.table (specifically 1.8.11 from Rforge)

查看:114
本文介绍了安装新版本的data.table(特别是来自Rforge的1.8.11)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据新闻,数据.table现在已经融化。



我看到并去下载data.table 1.8.11,当我去安装它,我得到一个错误,它不可用于R 2.15.3是我的版本)。根据我更新到R 3.0.1,并尝试再次安装...

 > install.packages(C:/ [path] /data.table_1.8.11.zip,repos = NULL)
install.packages中的警告:
package'C:/ [path] / data。 table_1.8.11.zip'不可用(对于R版本3.0.1)
软件包'data.table'已成功解压缩并且MD5总计检查

如果我做 packageVersion(data.table)我得到 1.8.11 但是如果我做?melt.data.table 我没有文档。



如果我卸载data.table我可以重新安装data.table 1.8.10从CRAN没有任何错误。



有人知道为什么我得到这些错误与较新版本的 data.table

解决方案

UPDATE :您可以从C驱动器路径R-Forge问题现在似乎已清除,并且 data.table 开发版本是最新的(v1.8.11的rev 965),包括Windows .zip。如果再次发生,以下信息仍然相关。






R-Forge下载页面包含此文本:


重要说明:R-Forge仅为最新版本的R提供这些二进制文件,但不提供旧版本。为了成功安装R-Forge提供的软件包,您必须切换到R的最新版本,或者从软件包源(.tar.gz)安装。


< blockquote>

最新版本的R是3.0.1,所以你升级到它。



,R-Forge二进制构建过程目前崩溃,不幸的是,通常情况下。你可以告诉它坏了,因为它是永久的建设状态,最后更新日期是8月29日这只是重要,因为你在Windows上,显然,它是太困难或阻止大多数用户安装 Rtools ,允许他们从源代码构建。



这就是为什么我定期将最新的稳定版开发版的.zip文件上传到首页



我让R-Forge团队知道这里与其他人一样,但它已经发生了几个星期。



在Mac和Linux上(以及在安装了Rtools的Windows上)从源代码构建:

  install.packages(data.table,
repos =http://R-Forge.R-project.org,
type =source)



但是会抓取R-Forge的最后一个tar.gz的R-Forge构建过程。所以这是目前非常陈旧。



因此,要自己创建最新的tar.gz,它是:

  svn checkout svn://svn.r-forge.r-project.org/svnroot/datatable/ 
R CMD build pkg
#现在,因为你在DOS提示符下,你可能还要做:
R CMD INSTALL data.table_1.8.11.tar.gz

并参见 6.3.1 Windows安装和管理手册的。您可能还需要安装SVN。



如果R-Forge的夜间构建经常崩溃,那么我们可以移动到GitHub。在Windows上,您肯定需要安装Rtools,然后使用Hadley的工具从github的源代码构建。或者,我可以继续在Windows上编译(使用 win-builder )并提供.zip



但我们只是在这里讨论开发版本。 CRAN系统在所有平台上都是超可靠的。 CRAN每天这里检查data.table。



Btw,一旦R-Forge检测到一个新的提交,就会在它开始构建新的提交之前删除现有的.zip。这将是更好的,如果它离开以前的版本到位,直到新的一个准备好。



如果我们不喜欢这个,那么你总是看到你报告的不可用消息,R-Forge正在为你想要的包建立状态。我们可以自己改变。 R-Forge本身是开源的;即其构建过程本身是任何人都可以检查,调试和建议更改(IIUC)的R-Forge软件包。他们可以在此处找到。


According to NEWS, data.table now has melt.

I saw that and went to download data.table 1.8.11 and when I went to install it I got an error that it is unavailable for R 2.15.3 (which is the version I was on). Based on that I updated to R 3.0.1 and tried to install it again...

> install.packages("C:/[path]/data.table_1.8.11.zip", repos = NULL)
 Warning in install.packages :
 package ‘C:/[path]/data.table_1.8.11.zip’ is not available (for R version 3.0.1)
 package ‘data.table’ successfully unpacked and MD5 sums checked

if I do packageVersion("data.table") I get 1.8.11 but if I do ?melt.data.table I get there's no documentation for it.

If I uninstall data.table I can then reinstall data.table 1.8.10 from CRAN without getting any errors.

Does anyone know why I'm getting these errors with the newer version of data.table? As you can tell from the C drive path I'm on Windows.

解决方案

UPDATE: The R-Forge problem now appears to have cleared and the data.table development version is up to date again (rev 965 of v1.8.11) including a Windows .zip. The information below is still relevant if it happens again.


The R-Forge download page contains this text :

Important note for package binaries: R-Forge provides these binaries only for the most recent version of R, but not for older versions. In order to successfully install the packages provided on R-Forge, you have to switch to the most recent version of R or, alternatively, install from the package sources (.tar.gz).

The most recent version of R is 3.0.1, so you did right by upgrading to it.

But the R-Forge binary build process is broken at the moment, which unfortunately is often the case. You can tell it's broken because it's in "building" state permanently, and the last update date is 29 Aug. This only matters because you're on Windows where, apparently, it's either too difficult or prevented for most users to install Rtools which allows them to build from source.

Which is why I periodically upload a .zip for Windows of the latest stable development version to the homepage. But this hasn't been done since melt was added.

I've let the R-Forge team know here as have other people, but it has been outstanding several weeks.

To build from source on Mac and Linux (and on Windows with Rtools installed) it's :

install.packages("data.table",
                 repos= "http://R-Forge.R-project.org",
                 type="source")

But this grabs the last tar.gz on R-Forge, which is built by the first stage of the same (currently broken) R-Forge build process. So that is currently very stale too. In fact before the latest release to CRAN, as Dean has found in comments.

So to build the latest tar.gz yourself, it's :

svn checkout svn://svn.r-forge.r-project.org/svnroot/datatable/
R CMD build pkg
# and now since you're at the DOS prompt anyway you may as well do :
R CMD INSTALL data.table_1.8.11.tar.gz

And see section 6.3.1 Windows of the R Installation and Administration manual. You may need to install SVN, too.

If the overnight build of R-Forge is broken so often, then we may as well move to GitHub. On Windows you would then definitely need to install Rtools, and then use Hadley's tools to build from source from github. Or I could continue to compile on Windows (using win-builder) and provide a .zip on the data.table homepage.

But we're only talking the development version here. The CRAN system is ultra reliable on all platforms. CRAN checks data.table every day here.

Btw, as soon as R-Forge detects a new commit has been made, it appears to remove the existing .zip before it starts to build the new one. It would be better if it left the previous build in place until the new one was ready. You always see the "not available" message you've reported whenever R-Forge is in building state for the package you want.

If we don't like this, we can change it ourselves. R-Forge itself is open source; i.e., its build processes are themselves R-Forge packages which anyone can inspect, debug and suggest changes to (IIUC). They can be found here.

这篇关于安装新版本的data.table(特别是来自Rforge的1.8.11)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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