-
Notifications
You must be signed in to change notification settings - Fork 759
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
Fix revdep_check() when git2r is not loaded #1068
Conversation
This LGTM. I ran into this as well. I think this is a regression caused by the switch to withr. |
There are two more instances of
|
I was wrong about it being a regression of That first instance was deliberately changed to from prepending to replace at |
Merged with master, and replaced instance of with_libpaths() by with_temp_libpaths(). |
@@ -118,10 +118,11 @@ revdep_check <- function(pkg = ".", recursive = FALSE, ignore = NULL, | |||
dir.create(srcpath) | |||
|
|||
message("Installing ", pkg$package, " ", pkg$version, " from ", pkg$path) | |||
withr::with_libpaths(libpath, install(pkg, reload = FALSE, quiet = TRUE)) | |||
withr::with_libpaths(libpath, action = "prefix", | |||
install(pkg, reload = FALSE, quiet = TRUE)) |
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.
I think this maybe needs dependencies = TRUE
Reason: if git2r is not loaded yet, an error is raised if it not in the temporary library.
checking reverse suggests would probably install the suggests anyway
Restored lines killed when resolving merge conflicts, added "dependencies = TRUE". |
Fix revdep_check() when git2r is not loaded
BTW I think if you always add the NEWs bullet at the top, it's less likely to cause merge conflicts because it gets anchored to the unchanging heading. (That's my theory anyway) |
Nope: I have put together a test script that simulates adding a bullet point to the top of the NEWS file, a merge conflict is raised when trying to merge the second branch. Using .gitattributes helps, but only locally, not on GitHub. In my code, I record the NEWS entries in the bodies of the merge commit messages. Then, just before release, I use
where |
setting |
When installing package during revdep check, use new libpath in addition to existing libpath. Reason: if git2r is not loaded yet, an error is raised if it not in the temporary library.