tests/testthat/test_multi_measures_relationship.R

p <- multi_measures_relationship(ggplot2::mpg, cty, hwy, displ)

test_that("Plot returns gg object",{
  expect_that(class(p)[[1]], equals("gg"))
})

test_that("Plot uses correct data",{
  expect_that(length(names(p$data)), equals(3))
})

test_that("9 plots are produced",{
  expect_that(length(p$plots), equals(9))
})

Try the ezEDA package in your browser

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

ezEDA documentation built on June 29, 2021, 9:05 a.m.