Skip to contents

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)?

Value

nothing. called for side effects

Details

This can only work when deployed as a library and hence no standalone version of it exists, because the fully qualified packagename has to be used.