pak icon indicating copy to clipboard operation
pak copied to clipboard

Not installing specific version available on CRAN

Open fh-mthomson opened this issue 1 year ago • 4 comments

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("[email protected]")
#> 
#> ✔ 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

fh-mthomson avatar Jan 16 '24 23:01 fh-mthomson