tests/testthat/test_gantt.R

# vim:textwidth=80:expandtab:shiftwidth=2:softtabstop=2
library(plan)
filename <- system.file("extdata", "gantt.dat", package="plan")
g <- read.gantt(filename)              # make it available for other tests

test_that("can read gantt.dat file", {
  expect_silent(b <- read.gantt(filename))
})

test_that("summary works for gantt objects", {
  expect_output(summary(g), "Key, Description,")
})

test_that("plot works for gantt objects", {
  expect_silent(plot(g))
})

Try the plan package in your browser

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

plan documentation built on Aug. 19, 2023, 5:10 p.m.