knitr::opts_chunk$set(echo = TRUE)
library(texPreview) tex_opts$set(fileDir = params$path)
mtcars |> utils::head(5) |> knitr::kable(format = 'latex',caption = 'my table',label = 'tbl1') |> tex_preview(returnType = 'html',stem = 'test_html')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.