Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 892 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 892 Bytes

tinylens

R-CMD-check

The goal of tinylens is to provide a minimal set of tools for working with lenses in R.

As of the initial release, this is basically a re-implementation of the lenses package (https://github.com/cfhammill/lenses).

Installation

You can install the development version of tinylens from GitHub with:

# install.packages("pak")
pak::pak("arbelt/tinylens")

Example

The main benefit of lenses is that they are composable, and so allow for more streamlined transformations of nested data structures.

library(tinylens)
## basic example code