Learn R Programming

drake (version 4.4.0)

knitr_deps: Function knitr_deps

Description

Find the dependencies of a dynamic report. To enable drake to watch for these dependencies, your workplan plan command to compile this report must make direct use of knitr::knit(). That is, it must look something like knit('your_report.Rmd') in your workflow plan data frame.

Usage

knitr_deps(target)

Arguments

target

file path to the file or name of the file target, source text of the document.

Details

Drake looks for dependencies in the document by analyzing evaluated code chunks for other targets/imports mentioned in loadd() and readd().

See Also

knitr_deps, deps, make, load_basic_example

Examples

Run this code
# NOT RUN {
load_basic_example()
knitr_deps("'report.Rmd'") # Files must be single-quoted
knitr_deps("report.Rmd")
make(my_plan)
knitr_deps("'report.md'") # Work on the Rmd source, not the output.
# }

Run the code above in your browser using DataLab