tests/testthat/test-tikz-tools.R

test_that("has tikz image", {
  article_dir <- system.file("examples/article", package = "texor")
  dir.create(your_article_folder <- file.path(tempdir(), "tempdir"))
  x <- file.copy(from = article_dir, to = your_article_folder,recursive = TRUE,)
  your_article_path <- paste(your_article_folder,"article",sep="/")
  expect_equal(article_has_tikz(your_article_path), FALSE)
  unlink(your_article_folder,recursive = TRUE)
})

Try the texor package in your browser

Any scripts or data that you put into this service are public.

texor documentation built on Oct. 15, 2024, 5:08 p.m.