tests/testthat/test-pdf_to_images.R

context("PDF conversion")

test_that("PDF converted to PNG", {

  skip_on_cran()

  ex_file = system.file("extdata", "example.pdf", package = "didactr")
  if (file.exists(ex_file)) {
    res = pdf_to_images(ex_file)

    expect_length(res, 2)
    expect_type(res, "character")
  }
})
muschellij2/didactr documentation built on March 17, 2021, 12:45 p.m.