Skip to content

Commit 39765cd

Browse files
committed
fix esoteric 'promise already under evaluation' error
1 parent 2f06dd5 commit 39765cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/plot.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ class_ggplot <- S7::new_class(
163163
ggplot <- S7::new_generic(
164164
"ggplot2", "data",
165165
fun = function(data, mapping = aes(), ..., environment = parent.frame()) {
166+
force(mapping)
166167
S7::S7_dispatch()
167168
}
168169
)

0 commit comments

Comments
 (0)