f_text

0th

Percentile

Turn RHS of formula into a string/label.

Equivalent of expr_text() and expr_label() for formulas.

Usage
f_text(x, width = 60L, nlines = Inf)
f_label(x)
Arguments
x
A formula.
width
Width of each line.
nlines
Maximum number of lines to extract.
Aliases
  • f_text
  • f_label
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)
}))
Documentation reproduced from package rlang, version 0.0.0.9000, License: GPL-3

Community examples

Looks like there are no examples yet.