This function is a wrapper for officer::block_pour_docx(). It extends its functionality so that not the entire docx is poured into the RMarkdown file, but only a part of it.

partial_block_pour_docx(file, heading1title, includeheader = TRUE)

Arguments

file

external docx file path

heading1title

name of the header (of MSWord style heading 1) that denotes the relevant part.

includeheader

should the header of the relevant be part of the pour?

Examples

# see https://github.com/davidgohel/officedown/discussions/97#discussioncomment-4839382