@@ -12,25 +12,25 @@ test_that("plotly = TRUE runs when plotly package is installed", {
1212 expect_silent(plot_histogram(iris , ncol = 2L , plotly = TRUE ))
1313 out_hist <- plot_histogram(iris , ncol = 2L , plotly = TRUE )
1414 expect_is(out_hist , " list" )
15- expect_true(all(vapply(out_hist , is.ggplot , TRUE )))
15+ expect_true(all(vapply(out_hist , is_ggplot , TRUE )))
1616
1717 expect_silent(plot_density(iris , ncol = 2L , plotly = TRUE ))
1818 out_dens <- plot_density(iris , ncol = 2L , plotly = TRUE )
1919 expect_is(out_dens , " list" )
20- expect_true(all(vapply(out_dens , is.ggplot , TRUE )))
20+ expect_true(all(vapply(out_dens , is_ggplot , TRUE )))
2121
2222 # Single-panel plots
2323 expect_silent(plot_missing(airquality , plotly = TRUE ))
2424 out_miss <- plot_missing(airquality , plotly = TRUE )
25- expect_true(is.ggplot (out_miss ))
25+ expect_true(is_ggplot (out_miss ))
2626
2727 expect_silent(plot_intro(iris , plotly = TRUE ))
2828 out_intro <- plot_intro(iris , plotly = TRUE )
29- expect_true(is.ggplot (out_intro ))
29+ expect_true(is_ggplot (out_intro ))
3030
3131 expect_silent(plot_correlation(iris , plotly = TRUE ))
3232 out_cor <- plot_correlation(iris , plotly = TRUE )
33- expect_true(is.ggplot (out_cor ))
33+ expect_true(is_ggplot (out_cor ))
3434})
3535
3636test_that(" plotly = TRUE with plot_boxplot and plot_qq when plotly is installed" , {
@@ -39,12 +39,12 @@ test_that("plotly = TRUE with plot_boxplot and plot_qq when plotly is installed"
3939 expect_silent(plot_boxplot(iris , by = " Species" , ncol = 2L , plotly = TRUE ))
4040 out_box <- plot_boxplot(iris , by = " Species" , ncol = 2L , plotly = TRUE )
4141 expect_is(out_box , " list" )
42- expect_true(all(vapply(out_box , is.ggplot , TRUE )))
42+ expect_true(all(vapply(out_box , is_ggplot , TRUE )))
4343
4444 expect_silent(plot_qq(iris , ncol = 2L , plotly = TRUE ))
4545 out_qq <- plot_qq(iris , ncol = 2L , plotly = TRUE )
4646 expect_is(out_qq , " list" )
47- expect_true(all(vapply(out_qq , is.ggplot , TRUE )))
47+ expect_true(all(vapply(out_qq , is_ggplot , TRUE )))
4848})
4949
5050test_that(" plotly = TRUE throws informative error when plotly is not installed" , {
@@ -69,11 +69,11 @@ test_that("plotly = FALSE is default and unchanged behavior", {
6969 # Regression: default remains static ggplot
7070 out_bar <- plot_bar(iris )
7171 expect_is(out_bar , " list" )
72- expect_true(is.ggplot (out_bar [[1 ]]))
72+ expect_true(is_ggplot (out_bar [[1 ]]))
7373
7474 out_miss <- plot_missing(airquality )
75- expect_true(is.ggplot (out_miss ))
75+ expect_true(is_ggplot (out_miss ))
7676
7777 out_intro <- plot_intro(iris )
78- expect_true(is.ggplot (out_intro ))
78+ expect_true(is_ggplot (out_intro ))
7979})
0 commit comments