I can't seem to find an SO post that helps me solve this problem. My minimally reproducible example is:
bigfn <- function(x) {
smallfn(x)
}
smallfn <- function(y) {
y <- rlang::enquo(y)
print(y)
print(rlang::quo_is_missing(y))
}
The output of bigfn()
is:
<quosure>
expr: ^x
env: 0x7fc93fc0f8c8
[1] FALSE
But I would like the quosure to be an empty quosure and FALSE
to be TRUE
to reflect the fact that bigfn
propagated down a missing value through smallfn
.
Additionally, I don't want to just move the enquo
into bigfn
because I would still like to be able to use smallfn
independent of bigfn
.