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 63125db commit 549fae9Copy full SHA for 549fae9
R/ggproto.r
@@ -351,3 +351,7 @@ format.ggproto_method <- function(x, ...) {
351
352
# proto2 TODO: better way of getting formals for self$draw
353
ggproto_formals <- function(x) formals(environment(x)$f)
354
+
355
+ggproto_attr <- function(x, which, default = NULL) {
356
+ attr(environment(x)$f, which = which, exact = TRUE) %||% default
357
+}
0 commit comments