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 May 29, 2024, 5:45 a.m.