tests/testthat/test_commands_used.R

context("Commands used")

test_that("Example", {
  expect_equal(commands_used(c("A \\abc{d}", "\\def{x}")),
               c("\\abc", "\\def"))
})

Try the TeXCheckR package in your browser

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

TeXCheckR documentation built on May 29, 2024, 7:20 a.m.