Skip to content

Commit e6f2a81

Browse files
committed
discard attributes with non-NULL dimensions
1 parent 3536fe7 commit e6f2a81

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

R/plotly_build.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ plotly_build.plotly <- function(p) {
9898
})
9999
dataArrayAttrs <- names(Attrs)[as.logical(isArray)]
100100
tr <- trace[names(trace) %in% c(npscales(), special_attrs(trace), dataArrayAttrs)]
101+
# TODO: does it make sense to "train" matrices/2D-tables (e.g. z)?
102+
tr <- tr[vapply(tr, function(x) is.null(dim(x)), logical(1))]
101103
builtData <- tibble::as_tibble(tr)
102104

103105
# avoid clobbering I() (i.e., variables that shouldn't be scaled)

0 commit comments

Comments
 (0)