Skip to contents

Merge markdown files into one unique file

Usage

mergeMarkdownFiles(inputFiles, outputFile, keepInputFiles = FALSE)

Arguments

inputFiles

names of .md files to merge

outputFile

name of merged .md file

keepInputFiles

logical option to prevent the input files to be deleted after merging them

Examples

if (FALSE) { # \dontrun{
resetReport("chapter-1.md")
addTextChunk(fileName = "chapter-1.md", text = "Chapter 1")
resetReport("chapter-2.md")
addTextChunk(fileName = "chapter-2.md", text = "Chapter 2")
mergeMarkdownFiles(
  inputFiles = c("chapter-1.md", "chapter-2.md"),
  outputFile = "chapters-1and2.md"
)
} # }