tests/testthat/test-get_all_cheatsheets.R

test_that("get_all_cheatsheets", {

  testthat::expect_error(get_all_cheatsheets(), NA)
  pdfs <- list.files(path = ".", pattern = "*.pdf", full.names = TRUE)
  purrr::map(pdfs, fs::file_delete)


})

test_that("get_all_cheatsheets_tidy", {

  testthat::expect_error(get_all_cheatsheets(tidyverse_only = TRUE), NA)
  pdfs <- list.files(path = ".", pattern = "*.pdf", full.names = TRUE)
  purrr::map(pdfs, fs::file_delete)


})

Try the cheatsheet package in your browser

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

cheatsheet documentation built on May 1, 2023, 5:20 p.m.