View source: R/utilities-writing-report.R
mergeMarkdownFiles | R Documentation |
Merge markdown files into one unique file
mergeMarkdownFiles(inputFiles, outputFile, keepInputFiles = FALSE)
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 |
Other reporting:
addFigureChunk()
,
addTableChunk()
,
addTextChunk()
,
anchor()
,
copyReport()
,
getAnchorName()
,
getFigurePathsFromReport()
,
hasAnchor()
,
renderReport()
,
renderWordReport()
,
resetReport()
## Not run:
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"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.