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

Review UI of partial() #607

Merged
merged 5 commits into from
Dec 21, 2018
Merged

Review UI of partial() #607

merged 5 commits into from
Dec 21, 2018

Conversation

lionel-
Copy link
Member

@lionel- lionel- commented Dec 20, 2018

These changes simplify the interface and make it more flexible. The .lazy, .env, and .first arguments are soft-deprecated.

@lionel- lionel- requested a review from hadley December 20, 2018 15:27
Copy link
Member

@hadley hadley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like where this syntax ended up 😄

`...f`). This also makes `partial()` more consistent with other
purrr function signatures.

* The `.lazy` argument of `partial()` is soft-deprecated in favour of
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

: -> .?

NEWS.md Outdated
signatures.

* `partial()` now supports quasiquotation. When you unquote an
argument, it is evaluated once and for all. This is more flexible
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

once at function creation time ?

R/partial.R Outdated
#' [rlang::call_modify()] to learn more about this syntax.
#'
#' These dots support quasiquotation and quosures. If you unquote a
#' value, it is evaluated once and for all when the argument is
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when the function is created.

@lionel- lionel- merged commit 669726d into tidyverse:master Dec 21, 2018
@lionel- lionel- deleted the fix-partial branch December 21, 2018 09:25
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.

2 participants