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 101f0fe commit be2d57cCopy full SHA for be2d57c
R/ggplotly.R
@@ -947,6 +947,11 @@ gg2list <- function(p) {
947
# x/y/etc so that they don't get unboxed when they are of length 1.
948
# unfortunately, this conflicts when using I() in qplot. For example,
949
# qplot(1:10, 1:10, size = I(10))
950
- un <- function(x) if (is.list(x)) lapply(x, un) else if (inherits(x, "AsIs")) unclass(x) else x
+ un <- function(x) {
951
+ if (is.null(x)) return(NA)
952
+ if (is.list(x)) lapply(x, un)
953
+ else if (inherits(x, "AsIs")) unclass(x)
954
+ else x
955
+ }
956
lapply(l, un)
957
}
0 commit comments