@@ -13,7 +13,7 @@ html_file <- gsub("\\.Rmd$", ".html", rmd_file)
13
13
docx_file <- gsub(" \\ .Rmd$" , " .docx" , rmd_file )
14
14
pdf_file <- gsub(" \\ .Rmd$" , " .pdf" , rmd_file )
15
15
16
- testthat :: test_that(" with html_document" , {
16
+ test_that(" with html_document" , {
17
17
skip_if_not_local_testing()
18
18
unlink(html_file , force = TRUE )
19
19
render(rmd_file ,
@@ -110,10 +110,10 @@ test_that("with word_document", {
110
110
expect_length(bookmarks , 0 )
111
111
})
112
112
113
- testthat :: test_that(" with word_document2" , {
113
+ test_that(" with word_document2" , {
114
114
skip_if_not_local_testing(min_pandoc_version = " 2.7.3" )
115
115
skip_if(pandoc_version() == numeric_version(" 2.9.2.1" ))
116
- testthat :: skip_if_not_installed(" bookdown" )
116
+ skip_if_not_installed(" bookdown" )
117
117
118
118
unlink(docx_file , force = TRUE )
119
119
render(rmd_file ,
@@ -149,7 +149,7 @@ testthat::test_that("with word_document2", {
149
149
150
150
151
151
152
- testthat :: test_that(" word with officer" , {
152
+ test_that(" word with officer" , {
153
153
unlink(docx_file , force = TRUE )
154
154
ft <- flextable(head(cars ))
155
155
ft <- theme_vanilla(ft )
@@ -193,7 +193,7 @@ test_that("with pdf_document2", {
193
193
doc <- get_pdf_text(pdf_file , extract_fun = pdftools :: pdf_text )
194
194
expect_true(any(grepl(" Cross-reference is there: 2" , doc , fixed = TRUE )))
195
195
} else {
196
- testthat :: expect_false(sucess ) # only necessary to avoid a note
196
+ expect_false(sucess ) # only necessary to avoid a note
197
197
}
198
198
})
199
199
0 commit comments