tests/testthat/test_knit.R

testthat::context("Knit")

Sys.setlocale('LC_ALL','C')

# Knit from template
testthat::test_that("Templates are knitted", {
  testthat::skip_on_cran()
  # Skip on GitHub Pages because knit_all() is run to build the gallery
  # testthat::skip_on_ci()
  # knit all templates
  if (rmarkdown::pandoc_available()) {
    destination <- paste(getwd(), "/docs", sep="")
    knit_all(destination=destination)
    # Clean up
    unlink(destination, recursive = TRUE)
  }
})

Try the memoiR package in your browser

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

memoiR documentation built on Sept. 14, 2023, 5:06 p.m.