ReporteRs (version 0.8.6)

RScript: RScript object

Description

Colored RScript object

Usage

RScript(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 = "#666666"), 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"), par.properties = parProperties())

Arguments

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
symbol.properties
symbol 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
slot.properties
slot txtProperties object
default.properties
default txtProperties object
par.properties
a parProperties object

See Also

addRScript

Examples

Run this code
an_rscript = RScript( text = "ls()
x = rnorm(10)" )

Run the code above in your browser using DataCamp Workspace