View source: R/quos_underscore.R
quos_underscore | R Documentation |
The expressions provided for all arguments whose names end with _
are
automatically converted into quosures, and also assigned to a name
without the training _
. The other arguments are evaluated in an usual way.
quos_underscore(...)
... |
The named arguments provided to be either converted into quosures or evaluated. |
An object of class quosures is returned. It can be used directly in tidyeval-aware contexts.
as.quosure, %>_%
foo <- function(...)
quos_underscore(...)
foo(x = 1:10, # "Normal" argument
y_ = 1:10, # Transformed into a quosure
z_ = non_existing_name) # Expressions in quosures are not evaluated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.