tar_knit_run: Run a 'knitr' report inside a 'tar_knit()' target.

View source: R/tar_knit.R

tar_knit_runR Documentation

Run a knitr report inside a tar_knit() target.

Description

Internal function needed for tar_knit(). Users should not invoke it directly.

Usage

tar_knit_run(path, args, deps)

Arguments

path

Path to the knitr source file.

args

A named list of arguments to knitr::knit().

deps

An unnamed list of target dependencies of the knitr report, automatically created by tar_knit().

Value

Character with the path to the knitr source file and the relative path to the output knitr report. The output path depends on the input path argument, which has no default.


tarchetypes documentation built on Oct. 4, 2023, 5:08 p.m.