--- title: "Tests and Coverage" date: "`r format(Sys.time(), '%d %B, %Y %H:%M:%S')`" output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{Tests and Coverage} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- ```{r setup, include = FALSE} knitr::opts_chunk$set( collapse = TRUE, comment = "#>", eval = FALSE ) ``` - [Coverage](#coverage) - [Unit Tests](#unit-tests) This output is created by [covrpage](https://github.com/yonicd/covrpage). ## Coverage Coverage summary is created using the [covr](https://github.com/r-lib/covr) package.
Object Coverage (%)
texPreview 48.76
[R/opts\_complete.R](https://github.com/yonicd/texPreview/blob/master/R/opts_complete.R) 0.00
[R/tex\_engine.R](https://github.com/yonicd/texPreview/blob/master/R/tex_engine.R) 0.00
[R/opts.R](https://github.com/yonicd/texPreview/blob/master/R/opts.R) 5.88
[R/tex\_addin.R](https://github.com/yonicd/texPreview/blob/master/R/tex_addin.R) 12.50
[R/zzz.R](https://github.com/yonicd/texPreview/blob/master/R/zzz.R) 35.71
[R/utils.R](https://github.com/yonicd/texPreview/blob/master/R/utils.R) 40.00
[R/print.R](https://github.com/yonicd/texPreview/blob/master/R/print.R) 42.86
[R/tex\_check.R](https://github.com/yonicd/texPreview/blob/master/R/tex_check.R) 47.06
[R/get\_texpackages.R](https://github.com/yonicd/texPreview/blob/master/R/get_texpackages.R) 50.00
[R/tex\_viewer.R](https://github.com/yonicd/texPreview/blob/master/R/tex_viewer.R) 63.64
[R/tex\_image.R](https://github.com/yonicd/texPreview/blob/master/R/tex_image.R) 69.23
[R/tex\_dir\_setup.R](https://github.com/yonicd/texPreview/blob/master/R/tex_dir_setup.R) 78.95
[R/tex\_preview.R](https://github.com/yonicd/texPreview/blob/master/R/tex_preview.R) 83.33
[R/tex\_return.R](https://github.com/yonicd/texPreview/blob/master/R/tex_return.R) 92.31
[R/build\_lines.R](https://github.com/yonicd/texPreview/blob/master/R/build_lines.R) 100.00
[R/build\_usepackage.R](https://github.com/yonicd/texPreview/blob/master/R/build_usepackage.R) 100.00
[R/kable.R](https://github.com/yonicd/texPreview/blob/master/R/kable.R) 100.00
[R/tex\_build.R](https://github.com/yonicd/texPreview/blob/master/R/tex_build.R) 100.00
[R/tex\_cleanup.R](https://github.com/yonicd/texPreview/blob/master/R/tex_cleanup.R) 100.00

## Unit Tests Unit Test summary is created using the [testthat](https://github.com/r-lib/testthat) package.
file n time error failed skipped warning icon
[test-error.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-error.R) 1 3.587 0 0 0 0
[test-kable.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-kable.R) 11 0.093 0 0 0 0
[test-packages.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-packages.R) 1 0.001 0 0 0 0
[test-print.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-print.R) 2 0.007 0 0 0 0
[test-rmd.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-rmd.R) 2 0.019 0 0 0 0
[test-tex.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-tex.R) 8 0.762 0 0 0 0
[test-utilities.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-utilities.R) 9 0.074 0 0 0 0
[test-viewer.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-viewer.R) 4 1.596 0 0 0 2 ⚠️
Show Detailed Test Results
file context test status n time icon
[test-error.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-error.R#L17) Rendering errors force an error: error message PASS 1 3.587
[test-kable.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-kable.R#L35) converting to kable lines: value PASS 1 0.007
[test-kable.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-kable.R#L40) converting to kable lines: class PASS 1 0.006
[test-kable.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-kable.R#L44) converting to kable lines: attr PASS 1 0.001
[test-kable.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-kable.R#L55) converting to kable file: value PASS 1 0.006
[test-kable.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-kable.R#L60) converting to kable file: class PASS 1 0.042
[test-kable.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-kable.R#L64) converting to kable file: attr PASS 1 0.002
[test-kable.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-kable.R#L74) converting to kable self: class PASS 1 0.010
[test-kable.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-kable.R#L78) converting to kable self: attr PASS 1 0.001
[test-kable.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-kable.R#L93) converting to kable input: value PASS 1 0.008
[test-kable.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-kable.R#L98) converting to kable input: class PASS 1 0.008
[test-kable.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-kable.R#L102) converting to kable input: attr PASS 1 0.002
[test-packages.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-packages.R#L8) packages parse packages: lines PASS 1 0.001
[test-print.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-print.R#L19) utilities print methods: texpreview\_tex PASS 1 0.004
[test-print.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-print.R#L23) utilities print methods: texpreview\_input PASS 1 0.003
[test-rmd.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-rmd.R#L12) Rendering markdown html: output device PASS 1 0.010
[test-rmd.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-rmd.R#L16) Rendering markdown html: png output PASS 1 0.009
[test-tex.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-tex.R#L17) core tex function porting to tex: files generated PASS 1 0.002
[test-tex.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-tex.R#L21) core tex function porting to tex: class of output PASS 1 0.001
[test-tex.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-tex.R#L35) core tex function porting to tex no filedir: no files generated PASS 1 0.003
[test-tex.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-tex.R#L39) core tex function porting to tex no filedir: class of output PASS 1 0.001
[test-tex.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-tex.R#L53) core tex function keep pdf as an output: files generated PASS 1 0.002
[test-tex.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-tex.R#L57) core tex function keep pdf as an output: class of output PASS 1 0.001
[test-tex.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-tex.R#L72) core tex function html output: return magick object PASS 1 0.750
[test-tex.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-tex.R#L106) core tex function tex lines directly input: validate benchmark PASS 1 0.002
[test-utilities.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-utilities.R#L10) utility functions of package build usepackage call: basic call PASS 1 0.002
[test-utilities.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-utilities.R#L14) utility functions of package build usepackage call: check library is installed PASS 1 0.022
[test-utilities.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-utilities.R#L18) utility functions of package build usepackage call: add options PASS 1 0.001
[test-utilities.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-utilities.R#L22) utility functions of package build usepackage call: use bad library name PASS 1 0.021
[test-utilities.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-utilities.R#L40) utility functions of package build usepackage multiple calls: class PASS 1 0.001
[test-utilities.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-utilities.R#L44) utility functions of package build usepackage multiple calls: dimension PASS 1 0.001
[test-utilities.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-utilities.R#L58) utility functions of package find packages: check class PASS 2 0.008
[test-utilities.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-utilities.R#L75) utility functions of package empty call to addin: cause addin to crash PASS 1 0.018
[test-viewer.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-viewer.R#L20_L26) Rendering viewer viewer output: validate viewer WARNING 2 0.723 ⚠️
[test-viewer.R](https://github.com/yonicd/texPreview/blob/master/tests/testthat/test-viewer.R#L36_L41) Rendering viewer shiny output: validate shiny output WARNING 2 0.873 ⚠️
Failed Warning Skipped
🛑 ⚠️ 🔶
Session Info
Field Value
Version R version 4.1.0 (2021-05-18)
Platform x86\_64-apple-darwin17.0 (64-bit)
Running macOS Big Sur 11.6
Language en\_US
Timezone America/New\_York
Package Version
testthat 3.1.2
covr 3.5.1
covrpage 0.1