-
Notifications
You must be signed in to change notification settings - Fork 43
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
Function deletePackage added #119
base: main
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #119 +/- ##
==========================================
+ Coverage 74.05% 74.81% +0.75%
==========================================
Files 13 14 +1
Lines 636 663 +27
==========================================
+ Hits 471 496 +25
- Misses 165 167 +2
Continue to review full report at Codecov.
|
Thanks for this work. I have created a new branch |
I have made some comments in the code, but I have one remaining, bigger question. If I understand this PR correctly, when you remove a package, all of the reverse dependencies will also be removed. If that's the case, is there a danger that the repo can end up in an inconsistent state? For example:
Now you decide to remove package B. What happens to C, and what does it mean for the state of A? |
Thanks. I'll go through your comments this week. |
@andrie You mentioned comments in the code -- how can I see them? |
Interesting - my expectation was that you would receive an email pointing to the comments. You can access these on github by clicking on the "Files changed" button in the PR. This is the link: |
Yeah, I looked at that URL. There are supposed to be your comments, right? I can’t see them, maybe there’s something with permissions…?
I was able to create a comment there: https://github.com/andrie/miniCRAN/pull/119/files#r300357176, but I can’t see yours.
|
Hmm. I just added you to "assignees" - hopefully that makes a difference? |
@andrie I can't see comments either. If you began commenting using the review functionality, you may not have clicked "submit review". |
R/deletePackages.R
Outdated
if (!is.null(d[[pkg]])) d[[pkg]] else character() | ||
}))) | ||
l <- list(...) | ||
if ('reverse' %in% names(l)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit unclear to me what's the desired behaviour. It seems that if reverse
is in the dots, you always set reverse = FALSE
?
I think this will benefit from writing the ...
explicitly as arguments.
Thanks for the pointer, @achubaty. I think that was indeed the problem, so hopefully you can now see my comments. |
Is there any prospect of this being merged and released? Would be a really useful feature. Thanks |
Oh my, I never got that last notification about the review, so I didn't know it got stuck on my end. @andrie would you be willing to consider this PR again? If so, I'll try to resurrect it :) |
Following up the discussion in #81, created a
deletePackage
functionality. Documentation and tests are included. Also spotted two minor inconsistencies in the existing code -- see diff for details.The tests don't cover mac.binary -- I am using a snapshot which doesn't have Mac packages for 3.5 for some reason -- maybe there's a simple workaround you can come up with. A test case works with a dependency graph of existing packages -- let me know if you need details. There are some explanatory comments as well.
I ran
devtools::check
, and apart from the vignette building (which seems like a process performed differently?), everything looks good.