File: f_text.Rd

package info (click to toggle)
r-cran-lazyeval 0.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 596 kB
  • sloc: ansic: 310; sh: 9; makefile: 2
file content (37 lines) | stat: -rw-r--r-- 667 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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/formula.R
\name{f_text}
\alias{f_text}
\alias{f_label}
\title{Turn RHS of formula into a string/label.}
\usage{
f_text(x, width = 60L, nlines = Inf)

f_label(x)
}
\arguments{
\item{x}{A formula.}

\item{width}{Width of each line}

\item{nlines}{Maximum number of lines to extract.}
}
\description{
Equivalent of \code{\link{expr_text}()} and \code{\link{expr_label}()} for
formulas.
}
\examples{
f <- ~ a + b + bc
f_text(f)
f_label(f)

# Names a quoted with ``
f_label(~ x)
# Strings are encoded
f_label(~ "a\\nb")
# Long expressions are collapsed
f_label(~ foo({
  1 + 2
  print(x)
}))
}