Using texPreview with other Packages

library(texPreview)

tex_opts$set( 
  returnType = 'html',
  opts.html   = list(width = '75%', height = '75%')
)

knitr

kable

plot of chunk unnamed-chunk-2

plot of chunk unnamed-chunk-2

kableExtra

plot of chunk unnamed-chunk-3

plot of chunk unnamed-chunk-3

xtable


iris_rev |>
  xtable::xtable() |>
  tex_preview(print.xtable.opts = list(include.rownames = FALSE))
plot of chunk unnamed-chunk-4

plot of chunk unnamed-chunk-4

texreg

Ordinary least squares model (example from the ‘lm’ help file)

plot of chunk unnamed-chunk-5

plot of chunk unnamed-chunk-5

Linear mixed-effects models

plot of chunk unnamed-chunk-6

plot of chunk unnamed-chunk-6