tests/testthat/test-ggplot2.R

library(ggplot2)
test_that("not break ggplot()", {
  expect_s3_class(ggplot(pedestrian, aes(x = Date_Time, y = Count)), "ggplot")
})

Try the tsibble package in your browser

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

tsibble documentation built on Oct. 9, 2022, 9:05 a.m.