Skip to content

Commit

Permalink
turn off reviewer_chunkname test when pandoc not available
Browse files Browse the repository at this point in the history
  • Loading branch information
conig committed Nov 21, 2022
1 parent 1fe2a64 commit b64a36c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
18 changes: 9 additions & 9 deletions man/mask.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion tests/testthat/test-change_reviewer_chunkname.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
if(rmarkdown::pandoc_available()){

test_that("Users can change reviewer chunknames", {

rmdPath <- tempfile(fileext = ".rmd")
Expand All @@ -15,6 +17,10 @@ test_that("Users can change reviewer chunknames", {
options(reviewer_chunkname = "examplechunk",
warn = 2)

testthat::expect_no_error(rmarkdown::render(rmdPath, output_file = outPath))
testthat::expect_no_error(rmarkdown::render(rmdPath, output_file = outPath,
quiet = TRUE))

options(warn = 1)
})

}
3 changes: 0 additions & 3 deletions tests/testthat/test-turn_off_revise_error.R

This file was deleted.

0 comments on commit b64a36c

Please sign in to comment.