Knit to a versioned file in a sub-directory of the project
Source:R/knitr-utils.R
knit_versioned.Rd
used in a knitr preamble to direct the output to a subdirectory of the project --- title: "Analysis 1" output: html_document knit: ggrrr::knit_versioned("output/analysis-1") ---
Usage
knit_versioned(
directory = NULL,
...,
datedFile = !datedSubdirectory,
datedSubdirectory = FALSE
)
Arguments
- directory
the root of the output - can be an absolute path or a relative path interpreted as relative to the root of the project.
- ...
ignored
- datedFile
do you want the filename to have the date appended (defaults TRUE)?
- datedSubdirectory
do you want the files to be placed in a dated subdirectory (defaults FALSE)?