tests/testthat/test-examples.R

test_that("all exported functions have examples", {

  skip_on_ci()
  skip_on_cran()
  exFiles <- normalizePath(dir("../../man", full.names = TRUE))
  tmpdir <- withr::local_tempdir()
  withr::local_dir(tmpdir)

  for (file in exFiles) {
    test_example(file)
  }
})

Try the quickPlot package in your browser

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

quickPlot documentation built on July 9, 2023, 6:02 p.m.