Compile and compare a slide chunk
check_slides_single.RdUse check_slides_many() to check many slides.
Usage
check_slides_single(
slide_file,
pre_clean = FALSE,
compare_slides = FALSE,
create_comparison_pdf = FALSE,
thresh_psnr = 40,
dpi_check = 50,
dpi_out = 100,
pixel_tol = 20,
overwrite = FALSE
)Arguments
- slide_file
[character(1)]Name of a (single) slide, with or without.texextension. See examples offind_slide_tex(). Can also be a direct file path to enable use of this function outside rigid folder hierarchy.- pre_clean
[FALSE]: Passed tocompile_slide().- compare_slides
[FALSE]IfTRUE, runcompare_slide()on the slide iff the compile check passed.- create_comparison_pdf, thresh_psnr, dpi_check, dpi_out, pixel_tol, overwrite
Passed to
compare_slide().
Value
A data.frame with columns
tex: Same asslide_fileargument.compile_check:logicalindicating whethercompile_slide()passedcompare_check:logicalindicating whethercompare_slide()passed (NAifcompare_slides = FALSEorcompile_slide()did not pass)compare_check_note: Note fromcompare_slide()indicating number and nature of differences.compare_check_raw: More verbose form ofcompare_check_note.compile_note: If there are compilation errors, the error messages fromcompile_slide()are included (see alsocheck_log()).