r package: devtools::install_github("cran/rgeos") encounters error

running this command works well

devtools::install_github("cran/alphahull")

running this command

devtools::install_github("cran/rgeos")

encounters error

Downloading GitHub repo cran/rgeos@master from URL https://api.github.com/repos/cran/rgeos/zipball/master Installing rgeos '/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore --quiet \ CMD INSTALL '/tmp/RtmpwuKfJE/devtools1914dc25bb/cran-rgeos-24a885d' \ --library='/srv/rlibs' --install-tests Installation failed: Command failed (1)

any ideas?

The cran github repo holds the last version of cran package to easily look at their source code.

It means you can (and I guess should...) install with remotes::install_cran("rgeos") - you'll get the same version.

I don't think the cran repo is made for installing cran :package: with install_github. There may be something missing.

What is the reason to install from github and not from cran directly ?

2 Likes

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.