[R-pkgs] nofrills: Low-Cost Anonymous Functions
Eugene Ha
eha at posteo.de
Tue Oct 3 13:31:28 CEST 2017
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
More information about the R-packages
mailing list