Skip to content

Commit 106d7b9

Browse files
committed
make sure the symbol renaming persists
1 parent 16fe607 commit 106d7b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/layer.r

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,8 @@ Layer <- ggproto("Layer", NULL,
302302
mask <- new_data_mask(as_environment(data, stage_mask), stage_mask)
303303
mask$.data <- as_data_pronoun(mask)
304304

305-
stat_data <- lapply(substitute_aes(new), eval_tidy, mask, env)
305+
new <- substitute_aes(new)
306+
stat_data <- lapply(new, eval_tidy, mask, env)
306307

307308
# Check that all columns in aesthetic stats are valid data
308309
nondata_stat_cols <- check_nondata_cols(stat_data)

0 commit comments

Comments
 (0)