ReporteRs (version 0.5.7)

addRScript: Add R script into a document object

Description

Add R script into a document object

Usage

addRScript(doc, file, text, comment.properties = textProperties(color =
  "#A7947D"), roxygencomment.properties = textProperties(color = "#5FB0B8"),
  symbol.properties = textProperties(color = "black"),
  operators.properties = textProperties(color = "black"),
  keyword.properties = textProperties(color = "#4A444D"),
  string.properties = textProperties(color = "#008B8B", font.style =
  "italic"), number.properties = textProperties(color = "blue"),
  functioncall.properties = textProperties(color = "blue"),
  argument.properties = textProperties(color = "#F25774"),
  package.properties = textProperties(color = "green"),
  formalargs.properties = textProperties(color = "#424242"),
  eqformalargs.properties = textProperties(color = "#424242"),
  assignement.properties = textProperties(color = "black"),
  slot.properties = textProperties(color = "#F25774"),
  default.properties = textProperties(color = "black"), ...)

Arguments

doc

document object

file

R script file. Not used if text is provided.

text

character vector. The text to parse. Not used if file is provided.

comment.properties

comment txtProperties object

roxygencomment.properties

roxygencomment txtProperties object

operators.properties

operators txtProperties object

keyword.properties

keyword txtProperties object

string.properties

string txtProperties object

number.properties

number txtProperties object

functioncall.properties

functioncall txtProperties object

argument.properties

argument txtProperties object

package.properties

package txtProperties object

formalargs.properties

formalargs txtProperties object

eqformalargs.properties

eqformalargs txtProperties object

assignement.properties

assignement txtProperties object

symbol.properties

symbol txtProperties object

slot.properties

slot txtProperties object

default.properties

default txtProperties object

...

further arguments passed to other methods

Value

a document object

See Also

addRScript.html, addRScript.docx , addRScript.pptx