Skip to content

Not installing specific version available on CRAN #583

@fh-mthomson

Description

@fh-mthomson

Related to #582, but specific to {package}@{version} not installing as expected, even after running pak::meta_update():

Reprex:

options(repos = "https://packagemanager.posit.co/cran/__linux__/jammy/latest")

# baseline
pak::meta_update()
#> 
#> ✔ Updated metadata database: 3.16 MB in 2 files.
#> 
#> ℹ Updating metadata database
#> ✔ Updating metadata database ... done
#> 
packageVersion('paws')
#> [1] '0.5.0'

pak::pak("paws@0.4.0")
#> 
#> ✔ All system requirements are already installed.
#> 
#> ℹ No downloads are needed
#> ✔ 1 pkg + 28 deps: kept 29 [3.1s]
packageVersion('paws') # wrong
#> [1] '0.5.0'

devtools::install_version('paws', "0.4.0")
#> Downloading package from url: https://packagemanager.posit.co/cran/__linux__/jammy/latest/src/contrib/Archive/paws/paws_0.4.0.tar.gz
#> Installing package into '/home/michael.thomson/R/x86_64-pc-linux-gnu-library/4.1'
#> (as 'lib' is unspecified)
packageVersion('paws') # correct
#> [1] '0.4.0'

Created on 2024-01-16 with reprex v2.0.2

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