@@ -13,7 +13,7 @@ html_file <- gsub("\\.Rmd$", ".html", rmd_file)
1313docx_file <- gsub(" \\ .Rmd$" , " .docx" , rmd_file )
1414pdf_file <- gsub(" \\ .Rmd$" , " .pdf" , rmd_file )
1515
16- testthat :: test_that(" with html_document" , {
16+ test_that(" with html_document" , {
1717 skip_if_not_local_testing()
1818 unlink(html_file , force = TRUE )
1919 render(rmd_file ,
@@ -110,10 +110,10 @@ test_that("with word_document", {
110110 expect_length(bookmarks , 0 )
111111})
112112
113- testthat :: test_that(" with word_document2" , {
113+ test_that(" with word_document2" , {
114114 skip_if_not_local_testing(min_pandoc_version = " 2.7.3" )
115115 skip_if(pandoc_version() == numeric_version(" 2.9.2.1" ))
116- testthat :: skip_if_not_installed(" bookdown" )
116+ skip_if_not_installed(" bookdown" )
117117
118118 unlink(docx_file , force = TRUE )
119119 render(rmd_file ,
@@ -149,7 +149,7 @@ testthat::test_that("with word_document2", {
149149
150150
151151
152- testthat :: test_that(" word with officer" , {
152+ test_that(" word with officer" , {
153153 unlink(docx_file , force = TRUE )
154154 ft <- flextable(head(cars ))
155155 ft <- theme_vanilla(ft )
@@ -193,7 +193,7 @@ test_that("with pdf_document2", {
193193 doc <- get_pdf_text(pdf_file , extract_fun = pdftools :: pdf_text )
194194 expect_true(any(grepl(" Cross-reference is there: 2" , doc , fixed = TRUE )))
195195 } else {
196- testthat :: expect_false(sucess ) # only necessary to avoid a note
196+ expect_false(sucess ) # only necessary to avoid a note
197197 }
198198})
199199
0 commit comments