Skip to content

install_version fails because of CRANextra #943

@oseiskar

Description

@oseiskar

devtools::install_version apparently tries to download already installed packages from the "CRANextra" repo, which can cause the installation to fail for no good reason.

My getOption('repos') is

                            CRAN                            CRANextra 
     "https://cran.rstudio.com/" "http://www.stats.ox.ac.uk/pub/RWin" 

and when I try devtools::install_version('data.table', '1.9.4'), the very end of the
installation fails with

...
** testing if installed package can be loaded
*** arch - i386
*** arch - x64
* DONE (data.table)
Downloading package from url: http://www.stats.ox.ac.uk/pub/RWin/src/contrib/Archive/data.table/data.table_1.9.4.tar.gz
Error in download(bundle, x$url, x$config) : 
  client error: (404) Not Found

even though the package was installed succesfully (library(data.table) succeeds).

If I remove "CRANextra" from repos, with, e.g.,

devtools::install_version('data.table', '1.9.4', repos='https://cran.rstudio.com/')

the installation succeeds.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions