tests/testthat/test-packages.R

testthat::context('packages')

testthat::describe('parse packages',{
  
  tex <- readLines(system.file('tmpl.tex',package = 'texPreview'))
  
  it('lines', {
    testthat::expect_equal(length(tex_requirements(lines = tex,file = NULL)),11)
  })

})

Try the texPreview package in your browser

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

texPreview documentation built on March 31, 2022, 9:05 a.m.