tests/testthat/test-to_latex.R

context("to_latex")

df <- ef_cetesb(p = "CO",
                veh = "PC_FG",
                full = T)

aa <- paste0(tempfile(), ".tex")

test_that("to_latex works", {
  expect_output(to_latex(df),
                "%.?")
  expect_output(to_latex(df, caption = ""),
                "%.?")
  expect_output(to_latex(df,  file = aa),
                ".?")
})

Try the vein package in your browser

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

vein documentation built on April 3, 2025, 9:32 p.m.