Support for devtools::install_version
1
0
Entering edit mode
acekane1 • 0
@acekane1-16956
Last seen 5.7 years ago

When trying to install a specific version of any package that's not the latest version, it errors with "couldn't find package".

Fails

devtools::install_version("BiocParallel", version="1.14.1", repos=c("https://bioconductor.org/packages/3.7/bioc"))

Works, since it's the latest

devtools::install_version("BiocParallel", version="1.14.2", repos=c("https://bioconductor.org/packages/3.7/bioc"))

Looking at the devtools source code, it fails due to a missing file in the archive: https://bioconductor.org/packages/3.7/bioc/src/contrib/Meta/archive.rds

Other CRAN archives seem to have this file: https://cloud.r-project.org/src/contrib/Meta/archive.rds

This affects Packrat's ability to save the source code in a project. (nvm: Packrat doesn't use this, just devtools)

packrat::init()
install.packages("devtools")
devtools::install_bioc("BiocParallel")
packrat::snapshot()

Is it possible to get the metadata file added?

package installation • 2.4k views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 13 hours ago
United States

You could just use switcher A: Looking for the source for IRanges 2.8.1, S4Vectors 0.12.1 and XVector 0.14.0

ADD COMMENT
0
Entering edit mode

Or switchr, actually.

ADD REPLY
0
Entering edit mode

Thanks for the response James. It looks like this doesn't affect Packrat as I originally thought, just devtools.

ADD REPLY

Login before adding your answer.

Traffic: 411 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6