Releases: egnha/nofrills
v0.3.2
v0.3.0
-
Currying operators
curry()
andcurry_fn()
are introduced (#10). Notably,
curry_fn()
supports quasiquotation, which enables more easily inspectable
functions. For example:compare_to <- curry_fn(target, x ~ identical(x, QUQ(target))) print(compare_to("this")) #> function (x) #> identical(x, "this")
-
fn()
now accepts closures as part of the body. In particular, nested calls
offn()
can be unquoted, e.g.,fn(x ~ !!fn(y ~ !!fn(z ~ x + y + z)))
yieldsfunction(x) function(y) function(z) x + y + z
. -
Literal unquoting operators
QUQ()
,QUQS()
now resolve to their
bang-operator forms (!!
,!!!
), rather than their functional aliases
(UQ()
,UQS()
), as these aliases are slated for potential deprecation in
rlang (#9).rlang::UQE()
has already been axed, soQUQE()
is gone too.
v0.2.1
v0.2.0
-
fn()
now comprehends literal unquoting operators via the use ofQUQ()
,
QUQS()
andQUQE()
. This allows you to make functions withfn()
that
contain unquoting operators, which is handy when programming with dplyr or
other tidyverse packages. -
make_fn_aware()
is a new functional operator that enhances a function by
enabling it to interpret abbreviated functional arguments (cf.as_fn()
). -
In order to keep the package namespace slim,
..()
has been softly
deprecated.