[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:
https://cran.r-project.org/package=nofrills

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:
https://github.com/egnha/nofrills

Bug reports and other feedback are welcome at the issues page on GitHub:
https://github.com/egnha/nofrills/issues

Eugene Ha
_______________________________________________
R-packages mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-packages
______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.