-
Notifications
You must be signed in to change notification settings - Fork 155
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
Restoring older versions of r-universe packages doesn't work anymore? #1961
Comments
Thanks for the bug report! This seems like an issue with Note that just manually updating the package version in the lockfile wouldn't normally be sufficient, since you'd need to be able to map the package version to the associated commit hash, but |
I think I might know what's going on. Lines 155 to 189 in 6d80457
This change happened with: However, to avoid lockfile noise from spurious diffs, We need to make sure |
And install cmdstanr in separate Docker step since it comes from r-universe and rstudio/renv#1961 is preventing r-universe + pak installation
I think this should now be resolved with the development builds of |
Ooh it works and writes out a more complete entry now:
|
(I'm not sure if this is an r-universe issue or an {renv} issue…)
Based on r-universe's documentation (and #789 and #1359), {renv} seems like it's supposed to be able to do some magic behind-the-scenes work to install older versions of packages released on r-universe by looking up GitHub SHAs.
However, as of {renv} 1.0.7, it doesn't seem to be working anymore. For instance, as of right now, the most current version of {tinytable} at https://vincentarelbundock.r-universe.dev is 0.3.0.33, and this lockfile works fine with
renv::restore()
:However, if the current version at r-universe changes (or if I change the lockfile manually to 0.3.0.32):
…running
renv::restore()
results in this error:For now, the only workaround I've found is to install older versions directly from GitHub SHAs (
renv::install("package/name@some-SHA")
) instead of using r-universe.I ran into this issue when building a Docker container that worked great when I first created it, but after a couple days, when one of the r-universe packages it relied on incremented its version, things broke. (The solution there was to manually edit the version in the lockfile to the most recent version at r-universe: andrewheiss/mountainous-mackerel-docker#1 (comment))
The text was updated successfully, but these errors were encountered: