SweaveListingOptions you can inspect and change
the global variables of the package SweaveListingUtils.SweaveListingOptions(...)
SweaveListingoptions(...)
getSweaveListingOption(x)SweaveListingOptions() returns a list of the global variables.
SweaveListingOptions(x) returns the global variable x.
getSweaveListingOption(x) returns the global variable x.
SweaveListingOptions(x=y) sets the value of the global variable x to y.SweaveListingoptions is
just a synonym to SweaveListingOptions.list("fancyvrb" = "true", "language" = "R", "escapechar" = "`",
"basicstyle" = "{\\color{Rcolor}\\footnotesize}",
"keywordstyle" = "{\\bf\\color{Rcolor}}",
"commentstyle" = "{\\color{Rcomment}\\ttfamily\\itshape}",
"literate" = "{<-}{{$\\leftarrow$}}2{<<-}{{$\\twoheadleftarrow$}}2",
"alsoother" = "{$}","alsoletter" = "{.<-}"
"otherkeywords" = "{!,!=,~,$,*,\\&,\\%/\\%,\\%*\\%,\\%\\%,<-,<<-,/}")
list("fancyvrb" = "true", "language" = "Rd",
"basicstyle" = "{\\color{black}\\tiny}",
"keywordstyle" = "{\\bf}",
"commentstyle" = "\\ttfamily\\itshape",
"alsolanguage" = "R")
Rinstyle (for R input),
default value is
list("style" = "Rstyle", "fancyvrb" = "true",
"basicstyle" = "\\color{Rcolor}\\small")
Routstyle (for R output),
default value is
list("fancyvrb" = "false", "basicstyle" = "\\color{Rout}\\small")
Rcodestyle (for R code),
default value is
list("style" = "Rstyle", "fancyvrb" = "true",
"basicstyle" = "\\color{Rcolor}\\small")
"fontshape"= "sl", "basicstyle" = "\\color{Rcolor}")
c(0,0.5,0.5)c(0,0.6,0.4)c(0,0.6,0.6)c(0.461,0.039,0.102)c(0.101,0.043,0.432)"2.0.2"library and require;
shall they show Sweave-behaviour? defaults to FALSE"{\\bf}""{\\bf\\color{Rbcolor}}""{\\bf\\color{Recomdcolor}}"TRUElstlang3.sty be overwritten
if they reappear in a required package (to be printed in a
different keywordstyle)?
defaults to FALSETRUE.add in command Rset;
defaults to TRUEadd in command Rdset;
defaults to TRUEadd in command
Rinset; defaults to TRUEadd in command
Routset; defaults to TRUEadd in command
Rcodeset; defaults to TRUE\file;
defaults to "\def\file#1{{\tt #1}}"\pkg;
defaults to "\def\pkg#1{{\tt \"#1\"}}"options, getOptionSweaveListingOptions()
SweaveListingOptions("Rout")
SweaveListingOptions("Rout" = c(0,0,0))
# or
SweaveListingOptions(Rout = c(0,1,0))
getSweaveListingOption("Rout")
Run the code above in your browser using DataLab