arg_rep: Replicate Function Arguments and Separate with an Equal Sign

Description Usage Arguments Examples

Description

Allows for easy passing through of arguments from a main function to a helper function.

Usage

1
2
3
4
5
6
7
arg_rep(args = NULL, ...)

## Default S3 method:
arg_rep(args = NULL, ...)

## S3 method for class 'function'
arg_rep(args = NULL, ...)

Arguments

args

A vector of arguments, a function, or NULL is copying from the clipboard.

...

ignored.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
arg_rep(lm)

clipr::write_clip(c('formula, data, subset, weights, na.action, method = "qr",',    
    'model = TRUE, x = FALSE, y = FALSE, qr = TRUE, singular.ok = TRUE,',
    'contrasts = NULL, offset, ...'
))
arg_rep()

## End(Not run)

trinker/pax documentation built on May 31, 2019, 9:42 p.m.