tests/testthat/test-vig_ggally.R

test_that("all vignetts are accounted for", {
  testthat::skip_on_cran()

  # make sure vig dir exists
  vig_dir <- file.path("..", "..", "vignettes")
  testthat::skip_if_not(dir.exists(vig_dir))

  vigs <- dir(vig_dir, pattern = "\\.Rmd$")
  vigs <- sub(".Rmd", "", vigs, fixed = TRUE)
  expect_equal(vignettes_for_ggally, vigs)
})

Try the GGally package in your browser

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

GGally documentation built on Nov. 22, 2023, 9:06 a.m.