remotes icon indicating copy to clipboard operation
remotes copied to clipboard

devtools::update_packages() finds updated package, but installs earlier version

Open jzadra opened this issue 1 year ago • 1 comments

For some reason devtools::update_packages() is finding an updated version, but then installs a different, earlier version of the package:

> packageVersion("httr2")
[1] ‘1.0.1’
> devtools::update_packages()
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?

1: All                          
2: CRAN packages only           
3: None                         
4: httr2 (1.0.1 -> 1.0.2) [CRAN]

Enter one or more numbers, or an empty line to skip updates: 4
httr2 (1.0.1 -> 1.0.2) [CRAN]
Installing 1 packages: httr2
trying URL 'https://cran.rstudio.com/bin/macosx/big-sur-arm64/contrib/4.4/httr2_1.0.1.tgz'
Content type 'application/x-gzip' length 548888 bytes (536 KB)
==================================================
downloaded 536 KB


The downloaded binary packages are in
	/var/folders/mp/w8f9_2c572dfzd9nf4363_lw0000gn/T//RtmpTHvYml/downloaded_packages
> packageVersion("httr2")
[1] ‘1.0.1’

R 4.4.1 devtools 2.4.5 macOS 14.5

jzadra avatar Jul 16 '24 19:07 jzadra

Use type = "source" as a workaround.

gaborcsardi avatar Jul 16 '24 21:07 gaborcsardi