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 Nov. 17, 2020, 9:08 a.m.