R install Vennerable package on windows [duplicate

2020-08-09 04:16发布

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).

4条回答
贼婆χ
2楼-- · 2020-08-09 05:02

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") 
查看更多
再贱就再见
3楼-- · 2020-08-09 05:06

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

查看更多
冷血范
4楼-- · 2020-08-09 05:07

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.

查看更多
\"骚年 ilove
5楼-- · 2020-08-09 05:15

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.

查看更多
登录 后发表回答