tinylens: Minimal Implementation of Functional Lenses

Provides utilities to create and use lenses to simplify data manipulation. Lenses are composable getter/setter pairs that provide a functional approach to manipulating deeply nested data structures, e.g., elements within list columns in data frames. The implementation is based on the earlier 'lenses' R package <https://github.com/cfhammill/lenses>, which was inspired by the Haskell 'lens' package by Kmett (2012) <https://github.com/ekmett/lens>, one of the most widely referenced implementations of lenses. For additional background and history on the theory of lenses, see the 'lens' package wiki: <https://github.com/ekmett/lens/wiki/History-of-Lenses>.

Version: 0.1.0
Imports: rlang, S7, vctrs
Suggests: tidyselect, tinytest
Published: 2024-12-09
DOI: 10.32614/CRAN.package.tinylens
Author: Albert Wang [aut, cre, cph]
Maintainer: Albert Wang <albert_z_wang at harvard.edu>
BugReports: https://github.com/arbelt/tinylens/issues
License: MIT + file LICENSE
URL: https://github.com/arbelt/tinylens
NeedsCompilation: no
Materials: README NEWS
CRAN checks: tinylens results

Documentation:

Reference manual: tinylens.pdf

Downloads:

Package source: tinylens_0.1.0.tar.gz
Windows binaries: r-devel: tinylens_0.1.0.zip, r-release: tinylens_0.1.0.zip, r-oldrel: tinylens_0.1.0.zip
macOS binaries: r-release (arm64): tinylens_0.1.0.tgz, r-oldrel (arm64): tinylens_0.1.0.tgz, r-release (x86_64): tinylens_0.1.0.tgz, r-oldrel (x86_64): tinylens_0.1.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=tinylens to link to this page.