File: tidy_pipe.Rd

package info (click to toggle)
r-cran-formatr 1.14-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 376 kB
  • sloc: javascript: 19; sh: 10; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 628 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tidy.R
\name{tidy_pipe}
\alias{tidy_pipe}
\title{Substitute the \pkg{magrittr} pipe with R's native pipe operator}
\usage{
tidy_pipe()
}
\description{
Parse the R code in the RStudio editor, identify \code{\%>\%}, and substitute
with \code{|>}.
}
\note{
Currently this function only works inside the RStudio IDE, and may be
  extended in future to deal with arbitrary R code elsewhere.
}
\examples{\dontshow{if (interactive()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
formatR::tidy_pipe()
\dontshow{\}) # examplesIf}
}