knitr::opts_chunk$set(
  error = TRUE,
  collapse = TRUE,
  comment = "#>",
  out.width = "100%"
)
testthat::test_that("\\left( \\begin{array}{cc} 1 & 6 \\\\ 2 & 7 \\\\ 3 & 8 \\\\ 4 & 9 \\\\ 5 & 10 \\end{array} \\right)", {
  testthat::expect_equal(
    "\\left( \\begin{array}{cc} 1 & 6 \\\\ 2 & 7 \\\\ 3 & 8 \\\\ 4 & 9 \\\\ 5 & 10 \\end{array} \\right)",
    yacR::as.tex(matrix(1:10, ncol = 2))
  )
})


jeksterslab/yacR documentation built on Feb. 27, 2021, 3:45 a.m.