You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like we can (attempt to) fix some of the niggling environment issues by manually adjusting the environment of the parts of the mapping/aes that are quosures. (See #96, #110, #119).
ggplot2::aes() doesn't provide a way to control the environment at the point of creation:
ggplot2::aes## function (x, y, ...) ## {## exprs <- rlang::enquos(x = x, y = y, ...)## is_missing <- vapply(exprs, rlang::quo_is_missing, logical(1))## aes <- new_aes(exprs[!is_missing], env = parent.frame())## rename_aes(aes)## }## <bytecode: 0x7f7f1ebab700>## <environment: namespace:ggplot2>
But we can
write a function that finds all (or some subset of) quosures in a mapping and sets their environments as we desire
use the environment of the formula as the environment
make this change in or after calling gf_ingredients().
The text was updated successfully, but these errors were encountered:
It looks like we can (attempt to) fix some of the niggling environment issues by manually adjusting the environment of the parts of the mapping/aes that are quosures. (See #96, #110, #119).
ggplot2::aes()
doesn't provide a way to control the environment at the point of creation:But we can
gf_ingredients()
.The text was updated successfully, but these errors were encountered: