Skip to content

install_version issue when length(getOption("repos"))>1 #721

@bbolker

Description

@bbolker

It looks like install_version expects getOption("repos") to be a length-1 vector:

options(repos=c("http://probability.ca/cran/", "http://cran.ma.imperial.ac.uk"))
devtools::install_version("rlandscape",version="1.0")
## Error in url(sprintf("%s/src/contrib/   Meta/archive.rds", repos), "rb") : invalid 'description' argument

Now set repos to a single element:

options(repos=c("http://probability.ca/cran/"))
devtools::install_version("rlandscape",version="1.0")

works fine.

(This is especially problematic on Windows since the default repos option includes both CRAN and CRANextra ...)

Metadata

Metadata

Assignees

No one assigned

    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