From 8e21aaa98515e2feca5ea8b0cfab85b9d4a95aa3 Mon Sep 17 00:00:00 2001 From: David Gohel Date: Sat, 13 Apr 2024 19:34:22 +0200 Subject: [PATCH] tests: fix test by setting quarto.version as numeric_version --- tests/testthat/test-latex.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testthat/test-latex.R b/tests/testthat/test-latex.R index bb495339..5370b462 100644 --- a/tests/testthat/test-latex.R +++ b/tests/testthat/test-latex.R @@ -25,7 +25,7 @@ test_that("fonts are defined in latex", { knitr::opts_knit$set("rmarkdown.pandoc.args" = NULL) # quarto - knitr::opts_knit$set("quarto.version" = numeric_version(1)) + knitr::opts_knit$set("quarto.version" = numeric_version("1.0")) latex_str <- flextable:::gen_raw_latex(ft, quarto = TRUE) expect_match(latex_str, regexp = "Liberation Sans", fixed = TRUE) })