Add R script into a document object
addRScript(doc, rscript, file, text, ...)
document object
an object of class RScript
.
Not used if file or text is provided.
R script file. Not used if text or rscript is provided.
character vector. The text to parse. Not used if file or rscript is provided.
further arguments passed to other methods
a document object
You have to one of the following argument: file or text or rscript.