-
Notifications
You must be signed in to change notification settings - Fork 83
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
Problems when CRAN returns multiple matches for a package #1002
Comments
@slodge-work Are you regularly switching between these two repository URLs? You can occasionally see similar problems if you switch between two CRAN mirrors (unrelated to Posit Package Manager); mirrors are often a little behind the main CRAN repository. The sync delay is longer with Package Manager, which makes this issue easier to see. Could you share your |
@hadley - we may need |
No. we are not flip-flopping:
Our machines are generally set up:
(although some do have The top of our normal
I also note that RODBC isn't the only package like this - and that some thought has been given to this before for Line 107 in 41907af
|
In other, more unfortunate news, I am seeing only one version returned by |
Do you happen to set |
It feels like rsconnect should not use |
Adjustment to the |
@slodge-work - could you try #1005 to see if that resolves your RODBC problem? |
Turns out this is in my RProfile...
So it turns out a different version of me has found a different fix and contributed a PR to a very similar issue before (but not updated my RProfile after the PR was completed!) |
So glad that's explained! I'll merge #1005 and we'll consider this one sorted, then. |
Background: https://community.rstudio.com/t/posit-packagemanager-too-many-rodbcs/173831/9
This has been quite an elusive problem to track down and reproduce... not least because first time I noticed it I made incomplete notes on what it was (sorry - and thanks to Greg for assisting!)
The problem is that in some rare cases CRAN will contain old versions of packages as well as new ones.
In this situation, rsconnect isDevVersion (and other functions) can pick out the wrong package - https://github.com/rstudio/rsconnect/blob/41907afefe219a5e00496c0ba99746eca38fbf01/R/bundlePackagePackrat.R#L107C1-L118C2
To repro this, you can look at the differences between these two CRANs:
Current:
... although I can't guarantee that repro will keep working - it depends on the CRANs being constant ... currently it's just "luck" that cran.rstudio.com is returning new RODBC before old RODBC:
The text was updated successfully, but these errors were encountered: