loading...

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(...)

Arguments

...

The named arguments provided to be either converted into quosures or evaluated.

Value

An object of class quosures is returned. It can be used directly in tidyeval-aware contexts.

See also

Examples

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
#> <list_of<quosure>>
#> 
#> $x
#>  [1]  1  2  3  4  5  6  7  8  9 10
#> 
#> $y
#> <quosure>
#> expr: ^1:10
#> env:  0x562ed6ddb470
#> 
#> $z
#> <quosure>
#> expr: ^non_existing_name
#> env:  0x562ed6ddb470
#>