Skip to content

Commit 599b851

Browse files
author
Wim
committed
Add test to prove #1299 fix
1 parent d41a675 commit 599b851

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/testthat/test-ggplot-lines.R

+7
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,10 @@ test_that("geom_linerange() without a y aesthetic translates to a path", {
120120
)
121121

122122
})
123+
124+
test_that("NA values do not cause a lot of warnings when ploting (#1299)", {
125+
df <- data.frame(x=1:2, y=NA)
126+
p <- plot_ly(df, x=~x, y=~y)
127+
expect_warning(plotly_build(p), "Ignoring")
128+
expect_failure(expect_warning(plotly_build(p), "structure"))
129+
})

0 commit comments

Comments
 (0)