diff --git a/tests/testthat/test-latex.R b/tests/testthat/test-latex.R index 0302f020..bb495339 100644 --- a/tests/testthat/test-latex.R +++ b/tests/testthat/test-latex.R @@ -15,17 +15,17 @@ test_that("fonts are defined in latex", { flextable::font(fontname = "Liberation Sans", part = "body") # R Markdown with pdflatex - knitr::opts_knit$set("quarto.version"=NULL) + knitr::opts_knit$set("quarto.version" = NULL) latex_str <- flextable:::gen_raw_latex(ft, quarto = FALSE) expect_no_match(latex_str, regexp = "Liberation Sans", fixed = TRUE) - knitr::opts_knit$set("rmarkdown.pandoc.args"= c("--pdf-engine", "xelatex")) + knitr::opts_knit$set("rmarkdown.pandoc.args" = c("--pdf-engine", "xelatex")) latex_str <- flextable:::gen_raw_latex(ft, quarto = FALSE) expect_match(latex_str, regexp = "Liberation Sans", fixed = TRUE) - knitr::opts_knit$set("rmarkdown.pandoc.args"= NULL) + knitr::opts_knit$set("rmarkdown.pandoc.args" = NULL) # quarto - knitr::opts_knit$set("quarto.version"=1) + knitr::opts_knit$set("quarto.version" = numeric_version(1)) latex_str <- flextable:::gen_raw_latex(ft, quarto = TRUE) expect_match(latex_str, regexp = "Liberation Sans", fixed = TRUE) })