Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
21 lines (13 sloc) 393 Bytes
testthat::context('Rendering errors')
path <- file.path(tempdir(),'tex_err')
cleanup(path)
tex_opts$set(returnType = 'tex',fileDir = path)
tex <- '\\begin{tabular}{ll}
3&3&3
\\end{tabular}'
testthat::describe('force an error',{
it('error message', {
testthat::expect_error(texPreview::tex_preview(tex,marker = FALSE),'Extra alignment tab')
})
})
cleanup(path,create = FALSE)
You can’t perform that action at this time.