Skip to content
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

Remove with_ functions from devtools and use those from withr #925

Merged
merged 10 commits into from
Oct 27, 2015

Conversation

jimhester
Copy link
Member

I am planning on submitting withr to CRAN in the next week or so. But I wanted to send a PR to iron out any bugs (and try the new Remotes: feature)

@jimhester
Copy link
Member Author

This now works, all of the calls to with_ functions within devtools are replaced by calls to the corresponding withr functions.

However we need to decide how to handle calls to the old with_ function from other packages. There are three possibilities I see

  1. Do nothing (this will break packages that use the functions, but will force them to update to withr functions immediately).
  2. Continue to supply the functions and with a .Deprecated warning, remove them at a later date.
  3. Export the existing functions as aliases to the corresponding withr functions.

1 isn't going to happen so 2 seems to be the best option, as part of the reason for splitting the functions out was so fewer packages would need to depend on devtools directly.

@hadley
Copy link
Member

hadley commented Oct 26, 2015

I think 1 would be ok if you did the revdep checks and informed the revdep maintainers

@jimhester
Copy link
Member Author

Oh well... already did the deprecation work!

bee53b7 should be good (assuming it passes).

hadley added a commit that referenced this pull request Oct 27, 2015
Remove with_ functions from devtools and use those from withr
@hadley hadley merged commit be08bbf into r-lib:master Oct 27, 2015
@hadley
Copy link
Member

hadley commented Oct 27, 2015

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants