ctbrown/magrittr.plus: Drop-In, Opinionated ("Data First, Context Next") 'magrittr' Replacement with both get/set accessors.

This packages provides a monkey patch for 'magrittr' so that elements/attributes of recursive objects (e.g. lists, data.frames, S3, S4, R6, env, etc,) can be accessed using only the pipe '%>%' operator and their names. That is, 'magrittr.plus' looks for the RHS of the pipe *within* the LHS before looking in the enclosing scope. This enhancement eliminates the need for `.$` or `extract[2]` and is more in keeping with the tidyverse that favors "Data First, Context Next" evaluation. Additionally, it promotes more concise and legible code. Additionally, replacement methods also allows for inline replacement of a recursive objects elements/attributes: 'LHS %>% RHS <- newvalue'

Getting started

Package details

Maintainer
LicenseGPL-2 | file LICENSE
Version0.3.4
URL https://github.com/decisionpatterns/magrittr.plus http://www.decisionpatterns.com
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("ctbrown/magrittr.plus")
ctbrown/magrittr.plus documentation built on May 23, 2020, 12:17 p.m.