Learn R Programming

pipefittr (version 0.1.2)

pipefittr: Convert nested calls to magrittr's pipes.

Description

To take nested function calls and convert them to a more readable form using magrittr's pipes.

Usage

pipefittr(string, pretty = F)

Arguments

string
a string, to be converted into magrittr's pipe syntax
pretty
create a multiline output, which is prettier. Try this.

Examples

Run this code
teststring = "jump_on(bop_on( scoop_up( hop_through(foo_foo, forest), field_mouse ), head))"
pipefittr(teststring, pretty = TRUE)
  

Run the code above in your browser using DataLab