Learn R Programming

lazyeval (version 0.2.2)

auto_name: Automatically name all components of a lazy dots.

Description

Any components missing a name will automatically get a name added by looking at the first max_width characters of the deparsed expression.

Usage

auto_name(x, max_width = 40)

Arguments

max_width

Maximum number of characters to use

Examples

Run this code
# NOT RUN {
x <- lazy_dots(1 + 2, mean(mpg))
auto_name(x)

auto_name(list(~f, quote(x)))
# }

Run the code above in your browser using DataLab