-
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
"The project is out-of-sync" message appears when using a second named repository #1683
Comments
This issue keeps giving phantom out-of-sync warnings rstudio/renv#1683
Thanks for the bug report! I was able to reproduce the issue locally. Ultimately, the issue comes down to the fact that Normally, packages installed from an R package repository will have an entry:
to indicate where the package was retrieved from. Here, I think I could try to improve the heuristics here so that you don't get the false-positive message on startup here, but I think it's worth addressing this in |
Ok cool, I'll raise the issue over there and see if they can add |
Strangely, I don't think it's officially documented anywhere, but the R sources do make use of it in a variety of places, e.g. The fact that |
Glad to see this issue pop-up. This was driving me a little crazy but I was trying to make a reprex before posting but wasn't able to. Now that I see what's going on, I have some additional thoughts. It seems that
My issue is occurring because any packages installed from the #> - The project is out-of-sync -- use `renv::status()` for details.
renv::status()
#> No issues found -- the project is in a consistent state. which is caused by installing packages from the cellar which doesn't add a |
You'll see:
|
Appreciate the correction/explanation, thank you! |
Using the latest GitHub version of renv (dba0079), I'm trying to add a second named repository to the lockfile for Stan-related stuff, following the instructions here. (This is possibly related to #1550.)
However, it seems that when there are two repositories in the lockfile, like this:
…I get this error, even though
renv::status()
says everything is fine and stable:Here's a reproducible example (starting from a new empty project)
If I remove the Stan repository and only use one repository entry in the lockfile and install {cmdstanr} like this:
…and then snapshot, I get this message, which is to be expected, since it comes from an unknown-to-renv repository:
BUT when I restart R, I don't get the "The project is out-of-sync". That message only appears if the Stan repository is included in the lockfile.
The text was updated successfully, but these errors were encountered: