Merge markdown files into one unique file
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
See also
Other reporting:
addFigureChunk()
,
addTableChunk()
,
addTextChunk()
,
anchor()
,
copyReport()
,
getAnchorName()
,
hasAnchor()
,
renderReport()
,
renderWordReport()
,
resetReport()
Examples
if (FALSE) {
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"
)
}