mergeMarkdownFiles: mergeMarkdownFiles

View source: R/utilities-writing-report.R

mergeMarkdownFilesR Documentation

mergeMarkdownFiles

Description

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

See Also

Other reporting: addFigureChunk(), addTableChunk(), addTextChunk(), anchor(), copyReport(), getAnchorName(), getFigurePathsFromReport(), hasAnchor(), renderReport(), renderWordReport(), resetReport()

Examples

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


Open-Systems-Pharmacology/OSPSuite.ReportingEngine documentation built on March 30, 2024, 4:17 p.m.