tests/testthat/test-plot_ggplot.R

dat <- data.frame(start = c("2019-01-01 00:00", "2019-01-01 04:00"),
                  end = c("2019-01-01 05:00", "2019-01-05 06:00"),
                  event = 1:2)


test_that("class is ggplot", {
    expect_s3_class(gg_vistime(dat), "ggplot")
})

Try the vistime package in your browser

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

vistime documentation built on Nov. 2, 2023, 5:23 p.m.