Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrandin committed Nov 7, 2024
1 parent 2109192 commit 6900b4e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/testthat/test-update-csasstyle.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,20 @@ test_that("update_csasstyle() works", {

# ---------------------------------------------------------------------------
# Set lot_lof (toggle show List of tables/List of Figures in doc)
installed_3_1_2 <- pandoc::pandoc_available("3.1.2")
if(!installed_3_1_2){
pandoc::pandoc_install("3.1.2")
}
pandoc::pandoc_activate("3.1.2")
rmd <- readLines("index.Rmd")
ind <- grep("lot_lof:", rmd)
rmd[ind] <- " lot_lof: true"
writeLines(rmd, "index.Rmd")
csasdown::render()
expect_true(file.exists("_book/resdoc-english.pdf"))
if(!installed_3_1_2){
pandoc::pandoc_uninstall("3.1.2")
}

# ---------------------------------------------------------------------------
# Set draft_watermark
Expand Down

0 comments on commit 6900b4e

Please sign in to comment.