Warning when installing packages related to packagemanager.posit.co/cran

I create a project with a GitHub link and do renv::restore(). I agree to installing packages and they are successfully installed, but at the end there is a warning message:

Installing spelling [2.2] ...
	OK [installed binary]
Moving spelling [2.2] into the cache ...
	OK [moved to cache in 2.9 milliseconds]
Installing tidyr [1.1.3] ...
	OK [installed binary]
Moving tidyr [1.1.3] into the cache ...
	OK [moved to cache in 2.9 milliseconds]
Installing staged.dependencies [0.2.8] ...
	OK [built from source]
Moving staged.dependencies [0.2.8] into the cache ...
	OK [moved to cache in 2.8 milliseconds]
Installing styler [1.9.1] ...
	OK [built from source]
Moving styler [1.9.1] into the cache ...
	OK [moved to cache in 2.7 milliseconds]
Warning message:
In (function (url, destfile, method, quiet = FALSE, mode = "w",  :
  cannot open URL 'https://packagemanager.posit.co/cran/__linux__/focal/2021-03-31/': HTTP status was '404 Not Found'

If I then do another renv::restore(), I am told: * The library is already synchronized with the lockfile.

Any ideas on how I can get rid of that warning?

Thanks!

I suggest you tag your question with the renv tag, so the right people see it.

Tagged it with renv. Thanks!

I have not seen this warning for a while; perhaps it was just a temporary thing related to my environment. I will let this close.

I am once again seeing a similar message:

Warning messages:
1: In (function (url, destfile, method, quiet = FALSE, mode = "w",  :
  downloaded length 0 != reported length 593
2: In (function (url, destfile, method, quiet = FALSE, mode = "w",  :
  cannot open URL 'https://packagemanager.posit.co/cran/__linux__/jammy/2022-10-31/': HTTP status was '404 Not Found'

Can anyone offer a suggestion about how to fix this?
Many thanks!

@Gabor Can you suggest someone knowledgeable about Posit Package Manager that I can tag?

The rspm tag is for Posit Package Manager (formerly RStudio Package Manager, hence the tag.)

OTOH assuming renv really wants to open that URL, this seems like an renv issue to me, so I would report an issue for renv.

1 Like

This topic was automatically closed after 45 days. New replies are no longer allowed.


If you have a query related to it or one of the replies, start a new topic and refer back with a link.