Skip to content

versioned package installation can fail when package provided by multiple repositories #819

@kevinushey

Description

@kevinushey

For example:

options(repos = c("https://posit-dev.r-universe.dev", "https://cran.rstudio.com"))
remotes <- "[email protected]"
pak::pkg_install(remotes)

This fails with:

> options(repos = c("https://posit-dev.r-universe.dev", "https://cran.rstudio.com"))
> remotes <- "[email protected]"
> pak::pkg_install(remotes)
Error: 
! error in pak subprocess
Caused by error: 
! Could not solve package dependencies:
* mcptools@0.1.1: Conflicts with mcptools@0.1.1
Type .Last.error to see the more details.

And indeed:

> db <- available.packages(filters = "R_version")
> db[db[, "Package"] == "mcptools", 1:2]
         Package    Version     
mcptools "mcptools" "0.1.1.9000"
mcptools "mcptools" "0.1.1"    

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions