Untitled

knitr::opts_chunk$set(echo = TRUE)
library(texPreview)
tex_opts$set(fileDir = params$path)

tex

mtcars |>
  utils::head(5) |>
  knitr::kable(format = 'latex',caption = 'my table',label = 'tbl1') |>
  tex_preview(returnType = 'html',stem = 'test_html')


Try the texPreview package in your browser

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

texPreview documentation built on May 29, 2024, 5:45 a.m.