Skip to content

Commit 5ad8736

Browse files
authored
Strip srcref attribute from constructor expression (#6472)
1 parent feb39c6 commit 5ad8736

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)