[R-pkgs] nofrills: Low-Cost Anonymous Functions

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[R-pkgs] nofrills: Low-Cost Anonymous Functions

Eugene Ha
Dear R Users,

nofrills (0.2.0) has been published on CRAN:

This lightweight package provides `fn()`, a compact variation of the
usual syntax of function declaration, in order to support
tidyverse-style quasiquotation of a function’s arguments and body.

Aside from enabling a shorter but fully general syntax for function
declarations, the main benefit of `fn()` is its ability to create
_pure_ functions via quasiquotation, which is tricky to guarantee in
base R, due to the mutability of bindings in a function’s lexical scope.

To learn more, see the landing page of the source repository:

Bug reports and other feedback are welcome at the issues page on GitHub:

Eugene Ha
R-packages mailing list
[hidden email]
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.