Skip to content

Commit 8f937e0

Browse files
committed
Use ||, not |, for logical vector of length 1
1 parent f0eb05e commit 8f937e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/ggplotly.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ gg2list <- function(p){
161161
ranges.list <- list()
162162
for(xy in c("x", "y")){
163163
use.ranges <-
164-
misc$is.continuous[[xy]] |
165-
misc$is.date[[xy]] |
164+
misc$is.continuous[[xy]] ||
165+
misc$is.date[[xy]] ||
166166
misc$is.datetime[[xy]]
167167
range.values <- if(use.ranges){
168168
range.name <- paste0(xy, ".range")

0 commit comments

Comments
 (0)