Skip to content

Commit 730880e

Browse files
committed
strip srcref from constructor expr
1 parent 7fb5760 commit 730880e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/layer.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ layer <- function(geom = NULL, stat = NULL,
181181
geom <- set_draw_key(geom, key_glyph %||% params$key_glyph)
182182

183183
fr_call <- layer_class$constructor %||% frame_call(call_env) %||% current_call()
184+
attr(fr_call, "srcref") <- NULL
184185

185186
ggproto("LayerInstance", layer_class,
186187
constructor = fr_call,

0 commit comments

Comments
 (0)