include_graphics_cmd: Add statement to include graphic into Rmarkdown source

Description Usage Arguments Value

Description

include_graphics_cmd assumes that in the Rmarkdown source file a chunk is inserted which will contain the statement that includes the graphic file. The chunk needs to be labelled with the name of the graphic file to be included. This function searches for this chunk and inserts the statement. If the chunk is not found, the graphics statement is included above the end of document marker.

Usage

1
include_graphics_cmd(psGraphicName, pvRmdSrc, psGrFmt)

Arguments

psGraphicName

name of the graphic file to be included

pvRmdSrc

name of the Rmarkdown source file

psGrFmt

graphic format

Value

vRmdSrc vector with extended Rmarkdown sources


charlotte-ngs/rmddochelper documentation built on June 27, 2019, 1:22 a.m.