tests/testthat/test_weld_bmillion.R

context("weld bmillion")

test_that("Works on known small report", {
  # on.exit(file.remove("weld-bmillion-outfile.Rnw"))
  weld_bmillion("weld-bmillion.Rnw", outfile = "weld-bmillion-outfile.Rnw")
  expect_identical(readLines("weld-bmillion-correct.Rnw"), readLines("weld-bmillion-outfile.Rnw"))
})

Try the TeXCheckR package in your browser

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

TeXCheckR documentation built on Nov. 17, 2020, 9:08 a.m.