We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b35cf63 commit 6002c9fCopy full SHA for 6002c9f
R/geom-.R
@@ -163,10 +163,15 @@ Geom <- ggproto("Geom",
163
# If any after_scale mappings are detected they will be resolved here
164
# This order means that they will have access to all default aesthetics
165
if (length(modifiers) != 0) {
166
- # Set up evaluation environment
167
- modified_aes <- eval_aesthetics(
168
- substitute_aes(modifiers), data,
169
- mask = list(stage = stage_scaled)
+ modified_aes <- try_fetch(
+ eval_aesthetics(
+ substitute_aes(modifiers), data,
+ mask = list(stage = stage_scaled)
170
+ ),
171
+ error = function(cnd) {
172
+ cli::cli_warn("Unable to apply legend modifications.", parent = cnd)
173
+ data_frame0()
174
+ }
175
)
176
177
# Check that all output are valid data
0 commit comments