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 b174986 commit 91a6d25Copy full SHA for 91a6d25
R/guides-.R
@@ -71,6 +71,9 @@ guides <- function(...) {
71
if (length(args) > 0) {
72
if (is.list(args[[1]]) && !is.guide(args[[1]])) args <- args[[1]]
73
args <- rename_aes(args)
74
+ # If there are no guides do nothing
75
+ if (length(args) == 0) {
76
+ return(NULL)
77
}
78
79
idx_false <- vapply(args, isFALSE, FUN.VALUE = logical(1L))
@@ -84,11 +87,6 @@ guides <- function(...) {
84
87
return(guides_list(guides = args))
85
88
86
89
- # If there are no guides, do nothing
- if (length(args) == 0) {
- return(NULL)
90
- }
91
-
92
# Raise warning about unnamed guides
93
nms <- names(args)
94
if (is.null(nms)) {
0 commit comments