addCodeBlock: Add code block into a document object
Description
Add a code block into a document object
Usage
addCodeBlock(doc, file, text, ...)
Arguments
file
script file. Not used if text is provided.
text
character vector. The text to parse.
Not used if file is provided.
...
further arguments passed to other methods