Learn R Programming

officedown (version 0.0.7)

knit_print_block: Force block printing while knitting

Description

When used in a loop, blocks output anything because knit_print method is not called. In that situation, use the function to force printing. Also you should tell the chunk to use results 'as-is' (by adding results='asis' to your chunk header).

Usage

knit_print_block(x, ...)

Arguments

x

a block object, result of a block function from officer package

...

unused arguments

Value

None. the function only print XML code.

Word example

Copy example located here: system.file(package = "officedown", "examples", "word_loop.Rmd")