tests/testthat/test_boxplot.R

test_that("Testing boxplot", {
  context("Boxplot")
  testthat::skip_on_ci()
  testthat::skip_on_cran()
  set.seed(1)
  x = rlnorm(100)
  expect_doppelganger("Boxplot basic", boxplot_p(x))
  expect_doppelganger("Boxplot horiz", boxplot_p(x, horizontal = TRUE))
  expect_doppelganger("Boxplot labels",
                              boxplot_p(x, xlab = "X", ylab = "Y",
                                      main = "Main", sub = "Sub"))
})

Try the prettyB package in your browser

Any scripts or data that you put into this service are public.

prettyB documentation built on Feb. 10, 2021, 5:11 p.m.