@@ -183,33 +183,33 @@ test_that("Test for function as_rtf_subline() when subline exists", {
183
183
expect_equal(as_rtf_subline(sl )," {\\ pard\\ hyphpar\\ sb180\\ sa180\\ fi0\\ li0\\ ri0\\ ql\\ fs24{\\ f0 subline test text}\\ par}" )
184
184
})
185
185
186
- test_that(" Test for function as_rtf_footnote() when there is no text conversion
187
- i.e. attr(text, 'text_convert') = NULL" , {
188
- fn1 <- head(iris , 2 ) %> %
189
- rtf_title(title = ' footnote example' ) %> %
190
- rtf_footnote(footnote = c(" > = sign: {\\ geq}" , " superscript: {^a}" ),
191
- text_convert = FALSE )
192
-
193
- expect_true(grepl(" \\ geq" , as_rtf_footnote(fn1 ), fixed = TRUE ))
194
- expect_true(grepl(" ^a" , as_rtf_footnote(fn1 ), fixed = TRUE ))
195
-
196
- fn2 <- head(iris , 2 ) %> %
197
- rtf_title(title = ' footnote example' ) %> %
198
- rtf_footnote(footnote = c(" > = sign: {\\ geq}" , " superscript: {^a}" ))
199
-
200
- expect_false(grepl(" \\ geq" , as_rtf_footnote(fn2 ), fixed = TRUE ))
201
- expect_false(grepl(" ^a" , as_rtf_footnote(fn2 ), fixed = TRUE ))
202
- })
203
-
204
- test_that(" Test for function as_rtf_source() when there is no text conversion
205
- i.e. attr(text, 'text_convert') = NULL" , {
206
- sc <- head(iris , 2 ) %> %
207
- rtf_source(source = c(" >= sign: {\\ geq}" , " superscript: {^a}" ),
208
- text_convert = FALSE )
209
-
210
- expect_true(grepl(" \\ geq" , as_rtf_source(sc ), fixed = TRUE ))
211
- expect_true(grepl(" ^a" , as_rtf_source(sc ), fixed = TRUE ))
212
- })
186
+ # test_that("Test for function as_rtf_footnote() when there is no text conversion
187
+ # i.e. attr(text, 'text_convert') = NULL", {
188
+ # fn1 <- head(iris, 2) %>%
189
+ # rtf_title(title = 'footnote example') %>%
190
+ # rtf_footnote(footnote = c("> = sign: {\\geq}", "superscript: {^a}"),
191
+ # text_convert=FALSE)
192
+ #
193
+ # expect_true(grepl("\\geq", as_rtf_footnote(fn1), fixed = TRUE))
194
+ # expect_true(grepl("^a", as_rtf_footnote(fn1), fixed = TRUE))
195
+ #
196
+ # fn2 <- head(iris, 2) %>%
197
+ # rtf_title(title = 'footnote example') %>%
198
+ # rtf_footnote(footnote = c("> = sign: {\\geq}", "superscript: {^a}"))
199
+ #
200
+ # expect_false(grepl("\\geq", as_rtf_footnote(fn2), fixed = TRUE))
201
+ # expect_false(grepl("^a", as_rtf_footnote(fn2), fixed = TRUE))
202
+ # })
203
+ #
204
+ # test_that("Test for function as_rtf_source() when there is no text conversion
205
+ # i.e. attr(text, 'text_convert') = NULL", {
206
+ # sc <- head(iris, 2) %>%
207
+ # rtf_source(source = c(">= sign: {\\geq}", "superscript: {^a}"),
208
+ # text_convert = FALSE)
209
+ #
210
+ # expect_true(grepl("\\geq", as_rtf_source(sc), fixed = TRUE))
211
+ # expect_true(grepl("^a", as_rtf_source(sc), fixed = TRUE))
212
+ # })
213
213
214
214
215
215
0 commit comments