tests/testthat/test-explore-plot.R

library(ggplot2)
library(testthat)
library(campfin)

test_that("exploration plots are ggplot objects", {
  plot <- explore_plot(diamonds, cut)
  expect_s3_class(plot, "ggplot")
})

Try the campfin package in your browser

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

campfin documentation built on Oct. 20, 2023, 5:06 p.m.