Untitled

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

tex

mtcars |>
  utils::head(5) |>
  knitr::kable(format = 'latex',label = 'tbl1') |>
  tex_preview(returnType = 'tex',stem = 'test_tex')

input

mtcars |>
  utils::head(10) |>
  knitr::kable(format = 'latex',label = 'tbl2') |>
  tex_preview(returnType = 'input',stem = 'test_input')


Try the texPreview package in your browser

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

texPreview documentation built on March 31, 2022, 9:05 a.m.