quo_to_args | R Documentation |
Generally to be paired with args_and_kwargs
, quo_to_args
passes in a quosure or list of quosures (i.e. from quos
)
into the supplied function as arguments to that function.
quo_to_args(.f, quosures, ..., .quos_first = TRUE)
.f |
The function the arguments will be passed into |
quosures |
A quosure or list of quosures |
... |
Any other arguments to be passed into |
.quos_first |
whether the quosures should be inputted to |
This function has not been tested much with the inclusion of the non-quosure ... arguments. It gets a little fly-by-night beyond simple passing of quosures.
px <- "Hello" p <- function(x) print(x) quo_to_args(p, quo(px)) f <- function(x, y) x/y quo_to_args(f, quos(3+3, 3)) quo_to_args(f, quos(y=3+3, x=3)) m <- function(x, y, ...) paste0(x," ",y) quo_to_args(m, quos(y="World", "HAHAHHA", x="Hello"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.