从 R Forge 安装软件包时出现安装错误

发布于 2024-12-18 09:41:17 字数 734 浏览 2 评论 0 原文

我正在尝试从 R Forge 更新 zoo

install.packages("zoo", repo = "http://r-forge.r-project.org")

但我收到以下错误

正在将软件包安装到“C:/REVOLU~1/R-COMM~1.3/R-212~1.2/library”中 (因为“lib”未指定) install.packages 中的警告: 无法打开:HTTP 状态为“404 未找到” install.packages 中的警告: 无法打开:HTTP 状态为“404 未找到” install.packages 中的警告: 无法访问存储库的索引 http://r-forge.r-project .org/bin/windows/contrib/2.12 install.packages 中的警告: 包“zoo”不可用

我正在使用 Revolution R Community 版本 4.3(64 位)。

install.packages("zoo")

安装动物园的稍微过时的版本

I am trying to update zoo from R Forge.

install.packages("zoo", repo = "http://r-forge.r-project.org")

But I get the following error

Installing package(s) into ‘C:/REVOLU~1/R-COMM~1.3/R-212~1.2/library’
(as ‘lib’ is unspecified)
Warning in install.packages :
cannot open: HTTP status was '404 Not Found'
Warning in install.packages :
cannot open: HTTP status was '404 Not Found'
Warning in install.packages :
unable to access index for repository http://r-forge.r-project.org/bin/windows/contrib/2.12
Warning in install.packages :
package ‘zoo’ is not available

I am using Revolution R Community version 4.3 (64-bit).

install.packages("zoo")

Installs a slightly dated version of zoo

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

肤浅与狂妄 2024-12-25 09:41:17

为了澄清 @DWin 和 Gabor 的答案:

你遇到了麻烦,因为 R-forge 只为当前(现在是 2.14)和开发(“2.15”)构建二进制文件,但是如果你提到它,Brian Ripley 可能会生气方式)软件包的版本。在这种情况下,您有以下选择:

  • 将 R 升级到当前版本(最好的主意)。

如果您有充分的理由不能这样做(您没有管理权限,您正在运行依赖于先前版本的 R 的批判性分析,您需要使用 Revolution R 因为它的扩展等),那么您可以尝试以下操作之一:(

  • 如上面 @jthetzel 的评论所建议),请点击链接到 二进制版本的包,下载二进制文件(Windows 中为 zip),然后尝试从本地副本安装(使用 repos=NULL 或从相应的菜单项)。如果包隐式或显式地依赖于最新版本 R 中的功能,则这将不起作用。
  • 尝试安装包的源版本: install.packages("thispkg",repos="http:// r-forge.r-project.org",type="source")。这仅在以下情况下才有效:(1) 您安装了从源代码编译软件包的工具(请参阅 R 手册,或(对于 Windows)R for Windows FAQ,google 搜索“Rtools”等,或(对于 MacOS) R for MacOS FAQ)(2)该包仅包含 R 代码,而不包含编译的 C/FORTRAN 代码(我认为在 zoo 包的情况下并非如此) 。
  • 下载源码包,解压,修改DESCRIPTION文件,使维护者邮箱为自己的,重建源码包,上传到CRAN 双赢服务。 (如果您不修改 DESCRIPTION 文件,那么您将不会被告知该软件包已构建以及在哪里下载它 - 您只会让软件包的维护者感到烦恼和困惑,谁会收到电子邮件。)(这只适用于 Windows。)

您所遇到的一些阻力并不是针对您,而是针对 Revolution R。他们赚钱并没有什么问题(我不认为)来自 R,但在为 Revolution R 提供支持时增加了 R 社区的工作量(通常我们只会说“升级到最新版本的 R”并完成它),人们会变得有点脾气暴躁。

To clarify @DWin's and Gabor's answers slightly more:

You are running into trouble because R-forge only builds binaries for the current (2.14 right now) and development ("2.15", but Brian Ripley will probably get mad if you refer to it that way) versions of packages. In this situation you have the following options:

  • Upgrade R to the current version (the best idea).

If you have good reasons you can't do that (you don't have administrative rights, you are running a critical analysis that depends on a previous version of R, you need to use Revolution R because of its extensions etc.), then you can try one of the following:

  • (as suggested by @jthetzel's comment above) follow the links to the binary version of the package, download the binary file (zip in the case of Windows), and try installing from the local copy (with repos=NULL, or from the appropriate menu entry). This will not work if the package depends, implicitly or explicitly, on features in the latest version of R.
  • try to install the source version of the package: install.packages("thispkg",repos="http://r-forge.r-project.org",type="source"). This will only work if (1) you have the tools for compiling packages from source installed (see the R manual, or (for Windows) the R for Windows FAQ, google for "Rtools", etc., or (for MacOS) the R for MacOS FAQ) or (2) the package contains only R code, not compiled C/FORTRAN code (not true in the case of the zoo package, I think).
  • download the source package, unpack it, modify the DESCRIPTION file so that the maintainer e-mail is your own, rebuild the source package, and upload it to the CRAN win-builder service. (If you don't modify the DESCRIPTION file then you won't be informed that the package has been built and where to download it -- you'll just annoy and confuse the maintainer of the package, who will receive the e-mail.) (This only works for Windows.)

Some of the resistance you've been getting is directed less at you than at Revolution R. There's nothing wrong (I don't think) with their making money from R, but when providing support for Revolution R adds to the workload of the R community (ordinarily we would just say "upgrade to the latest version of R" and be done with it), people get a little grumpy.

隱形的亼 2024-12-25 09:41:17

这是周末,...是站点维护的典型时间。 404 消息可能会告诉您等待几个小时或使用其他镜像。在这种情况下,使用浏览器显示该链接确实不存在,但其主干确实存在,并且仅包含 R 版本 2.14 和 2.15 的代码。

您没有提供足够的信息来确定为什么“版本 4.3”无法访问当前版本的“zoo”,但联系 Revolution R 人员或致力于该版本的支持小组似乎比向志愿者发布消息更合适他们似乎没有固定代表的网站。我猜测您的“版本 4.3”基于 R 2.12.x,如果您确实找到了当前版本,您将会失败。您应该提供 sessionInfo() 而不是 RevoR 版本号。 RevoR 产品的支持论坛位于 http://forums.revolutionanalytics.com/ 。我试图确定他们当前正在发布的版本,但由于他们坚持让每个查询都通过他们的个人信息收集协议而受挫。我无法找到他们当前可用版本的“社区版本”的在线技术规格。

编辑:看来您已经与 Gabor 讨论过这个问题。他是“动物园”行为方面无可争议的权威。您不应该向其他地方寻求建议。

This is the weekend, .... a typical time for site maintenance. A 404 message could be telling you to either wait a few hours or use a different mirror. In this case using a browser shows that the link really does not exist but its stem does and has code only for R versions 2.14 and 2.15.

You have not given enough information to determine why "version 4.3" is not accessing a current version of "zoo" but it would seem more appropriate to contact the Revolution R people or a support group dedicated to that version than post a message on a volunteer website where they seem to have no regular representative. I'm guessing that your "version 4.3" is based on R 2.12.x and that you would get failure if you actually did find a current version. You should be providing sessionInfo() rahter than the RevoR version number. The RevoR product has a Support Forum at http://forums.revolutionanalytics.com/ . My effort to determine what version they are currently shipping are frustrated by their insistence on having every query go through their personal information gathering protocol. I was unable to find online technical specs for their currently available version of "Community version".

EDIT: It appears you have already been discussing this with Gabor. He is an undisputed authority on the behavior of "zoo". You should not be looking elsewhere for advice.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文