tar_knitr_deps {tarchetypes} | R Documentation |
List literate programming dependencies.
Description
List the target dependencies of one or more
literate programming reports (R Markdown or knitr
).
Usage
tar_knitr_deps(path)
Arguments
path |
Character vector, path to one or more R Markdown or
|
Value
Character vector of the names of targets
that are dependencies of the knitr
report.
See Also
Other Literate programming utilities:
tar_knitr_deps_expr()
,
tar_quarto_files()
Examples
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)
[Package tarchetypes version 0.9.0 Index]