auto_name: Automatically name all components of a lazy dots.

View source: R/lazy-names.R

auto_nameR Documentation

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

x

A lazy_dots

max_width

Maximum number of characters to use

Examples

x <- lazy_dots(1 + 2, mean(mpg))
auto_name(x)

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

hadley/lazyeval documentation built on June 19, 2022, 2:21 a.m.