| 1 |
test_that("Powerpoint require Pandoc 2.0.5 and above", { |
| 2 |
skip_if_not_pandoc() |
| 3 |
skip_if_pandoc("2.0.5") |
| 4 |
expect_error(powerpoint_presentation(), "is required and was not found") |
| 5 |
}) |
| 6 |
|
| 7 |
skip_if_not_pandoc("2.0.5") |
| 8 |
|
| 9 |
test_that("Incremental feature", { |
| 10 |
skip_if_not_pandoc() |
| 11 |
if (pandoc_available("2.15")) { |
| 12 |
ppt_out <- powerpoint_presentation(incremental = TRUE) |
| 13 |
expect_true("--incremental" %in% ppt_out$pandoc$args) |
| 14 |
} else { |
| 15 |
expect_warning(ppt_out <- powerpoint_presentation(incremental = TRUE), |
| 16 |
"is supported since Pandoc 2.15", fixed = TRUE) |
| 17 |
expect_false("--incremental" %in% ppt_out$pandoc$args) |
| 18 |
} |
| 19 |
}) |
| 20 |
|
| 21 |
|