Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my.toggle <- function(toggle) {
- if (toggle) {
- print("yes")
- } else {
- print("no")
- }
- }
- fn.args <- list(toggle = T)
- my.toggle(rlang::UQS(fn.args)) # fails
- # Error in if (toggle) { : argument is not interpretable as logical
- rlang::quo(my.toggle(rlang::UQS(fn.args))) # but this is the right function call
- # <quosure: global>
- # ~my.toggle(toggle = TRUE)
Add Comment
Please, Sign In to add comment