Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jzadra opened this issue Jul 16, 2024 · 1 comment

Comments

@jzadra
Copy link

jzadra commented Jul 16, 2024

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

@jennybc jennybc transferred this issue from r-lib/devtools Jul 16, 2024
@gaborcsardi
Copy link
Member

Use type = "source" as a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants