Learn R Programming

formatR (version 1.14)

tidy_pipe: Substitute the magrittr pipe with R's native pipe operator

Description

Parse the R code in the RStudio editor, identify %>%, and substitute with |>.

Usage

tidy_pipe()

Arguments

Examples

Run this code
if (FALSE) { # interactive()
formatR::tidy_pipe()
}

Run the code above in your browser using DataLab