R 在 Windows 上安装 Vennerable 包

发布于 2024-11-07 07:47:46 字数 1098 浏览 1 评论 0原文

我无法从 https://r-forge.r 安装 Vennerable R 软件包-project.org/projects/vennerable/ 在我的带有最新 R (2.13.0) 的 Windows 7 上。

我尝试了以下操作:

  1. 从 RGui 安装并选择 R-Forge 存储库:
    的列表中没有 Vennerable 包

  2. 使用“从本地 zip 文件安装包”从 RGui 安装:

    无法打开压缩文件“Vennerable.tar.gz/DESCRIPTION”
    
  3. 将 tar.gz 转换为 zip 并使用“从本地 zip 文件安装包”从 RGui 安装:

    无法打开压缩文件“Vennerable.tar.gz/DESCRIPTION”
    
  4. 尝试手动安装: install.packages("D:/Downloads/Vennerable. tar.gz", repos = NULL)

    无法打开压缩文件“Vennerable.tar.gz/DESCRIPTION”
    install.packages 中出错:无法打开连接
    

注意:有一个文件描述。

我应该怎么做才能安装这个软件包?


软件包页面上的链接已失效(指向Windows 版本软件包源)。

I am not able to install the Vennerable R package from https://r-forge.r-project.org/projects/vennerable/ on my Windows 7 with newest R (2.13.0).

I tried following:

  1. installed from RGui and selecting R-Forge repos:
    there was no Vennerable package in the list

  2. installed from RGui using "install package from local zip file":

    can not open compressed file 'Vennerable.tar.gz/DESCRIPTION'
    
  3. converted tar.gz into zip and installed from RGui using "install package from local zip file":

    can not open compressed file 'Vennerable.tar.gz/DESCRIPTION'
    
  4. tried manual install: install.packages("D:/Downloads/Vennerable.tar.gz", repos = NULL)

    can not open compressed file 'Vennerable.tar.gz/DESCRIPTION'
    Error in install.packages : cannot open the connection
    

Note: there is a file DESCRIPTION.

What should I do to install this package?


Links on package page are dead (to either Windows build and package source).

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

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

发布评论

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

评论(4

黎歌 2024-11-14 07:47:46

您可以查看源代码:打开终端并运行以下命令

svn checkout svn://svn.r-forge.r-project.org/svnroot/vennerable

,然后进行不带小插图的构建。

cd  vennerable/pkg
R CMD build Vennerable/ --no-build-vignettes

最后安装它:(

R CMD INSTALL Vennerable_3.0.tar.gz  

您的构建名称可能与 Vennerable_3.0.tar.gz 不同)。

对我来说,它生成了以下错误:

ERROR: dependencies ‘graph’, ‘RBGL’, ‘xtable’ are not available for package ‘Vennerable’

然后我必须转到 R,运行以下命令:

install.packages(c("graph", "RBGL", "xtable"))

然后返回终端并再次运行 R CMD INSTALL ... 命令。

You can checkout the source: open the terminal and run the following command

svn checkout svn://svn.r-forge.r-project.org/svnroot/vennerable

Then build without vignettes.

cd  vennerable/pkg
R CMD build Vennerable/ --no-build-vignettes

and finally to install it:

R CMD INSTALL Vennerable_3.0.tar.gz  

(Your build might be in a different name than Vennerable_3.0.tar.gz).

For me it generated the following error:

ERROR: dependencies ‘graph’, ‘RBGL’, ‘xtable’ are not available for package ‘Vennerable’

Then I had to go to R, run the following command:

install.packages(c("graph", "RBGL", "xtable"))

and then go back to the terminal and run the R CMD INSTALL ... command again.

揽清风入怀 2024-11-14 07:47:46

Vennerable 软件包已更新,现在版本 2.1 可从 R-forge 使用

install.packages("Vennerable", repos="http://R-Forge.R-project.org") 

Vennerable package has been updated and now version 2.1 is available from R-forge using

install.packages("Vennerable", repos="http://R-Forge.R-project.org") 
稚气少女 2024-11-14 07:47:46

我有同样的问题并解决了。问题在于如何归档包。顶级目录中有一个名为“Vennerable”的目录,名为“Vennerable_2.2”。我解压缩了存档。然后我导航到“Vennerable”子目录,并将其压缩。然后我使用新的“运行安装” Vennerable.zip 的存档非常有效。

I had the same problem and figured it out. The issue was with how the package is archived. There is a directory called 'Vennerable' within the top level directory which is called "Vennerable_2.2'. I unzipped the archive. Then I navigated to the 'Vennerable' subdirectory, and zipped that. Then I ran the installation using the new 'Vennerable.zip' archive. Worked like a charm.

魂归处 2024-11-14 07:47:46

如果您有 tar.gz 存档,则可能有该包的文件。在安装软件包之前,您必须先构建它。请参阅编写 R 扩展的第 1.3 节手册

另请参阅您的其他相关问题,我在其中提供了 R 2.13.0 x86_64 的构建包的链接:

http://commondatastorage.googleapis.com/jthetzel-public/Vennerable_1.1.1.1.zip

If you have a tar.gz archive, you likely have the package's source files. You must build it first before installing the package. See section 1.3 of the Writing R Extensions manual

See also your other related question, where I provided this link to the built package for R 2.13.0 x86_64:

http://commondatastorage.googleapis.com/jthetzel-public/Vennerable_1.1.1.1.zip

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