View source: R/tar_knitr_deps.R
tar_knitr_deps | R Documentation |
List the target dependencies of one or more
literate programming reports (R Markdown or knitr
).
tar_knitr_deps(path)
path |
Character vector, path to one or more R Markdown or
|
Character vector of the names of targets
that are dependencies of the knitr
report.
Other Literate programming utilities:
tar_knitr_deps_expr()
,
tar_quarto_files()
lines <- c(
"---",
"title: report",
"output_format: html_document",
"---",
"",
"```{r}",
"targets::tar_load(data1)",
"targets::tar_read(data2)",
"```"
)
report <- tempfile()
writeLines(lines, report)
tar_knitr_deps(report)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.