Colored RScript object
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())
R script file. Not used if text is provided.
character vector. The text to parse. Not used if file is provided.
comment txtProperties object
roxygencomment txtProperties object
symbol txtProperties object
operators txtProperties object
keyword txtProperties object
string txtProperties object
number txtProperties object
functioncall txtProperties object
argument txtProperties object
package txtProperties object
formalargs txtProperties object
eqformalargs txtProperties object
assignement txtProperties object
slot txtProperties object
default txtProperties object
a parProperties object
# NOT RUN {
an_rscript = RScript( text = "ls()
x = rnorm(10)" )
# }
Run the code above in your browser using DataLab