Learn R Programming

Orcs (version 1.2.3)

multiKnit: Convert Multiple R Markdown Files to Ordinary Markdown

Description

This function is a convenient wrapper around knitr::knit() as it automatically converts multiple R Markdown files (.Rmd) located in a specified folder (and, optionally, matching a particular pattern) to standard Markdown (.md).

Usage

multiKnit(path_in = ".", path_out = path_in, pattern = "*.Rmd$", ...)

Value

Output filenames as character.

Arguments

path_in

Input file path as character, defaults to the current working directory.

path_out

Output file path as character, defaults to 'path_in'.

pattern

Passed to list.files(), defaults to "*.Rmd$".

...

Additional arguments passed to knitr::knit().

Author

Florian Detsch