SweaveListingUtils (version 0.7.7)

SweaveListingOptions: Function to change the global options of the package `SweaveListingUtils'

Description

With SweaveListingOptions you can inspect and change the global variables of the package SweaveListingUtils.

Usage

SweaveListingOptions(...)
SweaveListingoptions(...)
getSweaveListingOption(x)

Arguments

any options can be defined, using name = value or by passing a list of such tagged values.
x
a character string holding an option name.

Value

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

For compatibility with spelling in package distr, SweaveListingoptions is just a synonym to SweaveListingOptions.

Global Options

Rset:
default setting for \lstset-definition of R-code, default value is 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" = "{!,!=,~,$,*,\\&,\\%/\\%,\\%*\\%,\\%\\%,<-,<<-,/}")
Rdset:
default setting for \lstset-definition of Rd-code, default value is list("fancyvrb" = "true", "language" = "Rd", "basicstyle" = "{\\color{black}\\tiny}", "keywordstyle" = "{\\bf}", "commentstyle" = "\\ttfamily\\itshape", "alsolanguage" = "R")
Rin:
default setting for \lstdefinestyle-definition of Rinstyle (for R input), default value is list("style" = "Rstyle", "fancyvrb" = "true", "basicstyle" = "\\color{Rcolor}\\small")
Rout:
default setting for \lstdefinestyle-definition of Routstyle (for R output), default value is list("fancyvrb" = "false", "basicstyle" = "\\color{Rout}\\small")
Rcode:
default setting for \lstdefinestyle-definition of Rcodestyle (for R code), default value is list("style" = "Rstyle", "fancyvrb" = "true", "basicstyle" = "\\color{Rcolor}\\small") "fontshape"= "sl", "basicstyle" = "\\color{Rcolor}")
Rcolor:
default setting for color of R-code in rgb-coordinates; defaults to c(0,0.5,0.5)
RRecomdcolor:
default setting for color of R-code from recommended packages in rgb-coordinates; defaults to c(0,0.6,0.4)
Rbcolor:
default setting for color of R-code symbols of intermediate packages in rgb-coordinates; defaults to c(0,0.6,0.6)
Routcolor:
default setting for color of R-output in rgb-coordinates; defaults to c(0.461,0.039,0.102)
Rcommentcolor:
default setting for color of R-comments in rgb-coordinates; defaults to c(0.101,0.043,0.432)
pkv:
default setting for package version as character; defaults to "2.0.2"
inSweave:
logical; default setting for masked functions library and require; shall they show Sweave-behaviour? defaults to FALSE
Keywordstyle:
default setting for R-symbols as character; defaults to "{\\bf}"
interm.Keywordstyle:
default setting for R-symbols in an intermediate package as character; defaults to "{\\bf\\color{Rbcolor}}"
Recomd.Keywordstyle:
default setting for R-symbols in package base or another recommended package as character; defaults to "{\\bf\\color{Recomdcolor}}"
intermediate:
default setting: shall symbols from automatically loaded intermediate packages also be registered for listings-printing? defaults to TRUE
overwrite:
default setting: shall R symbols already defined in the original R language definition in lstlang3.sty be overwritten if they reappear in a required package (to be printed in a different keywordstyle)? defaults to FALSE
fromRForge:
default setting: logical: shall code sniplets be drawn from "r-forge.r-project.org" (or a mirror) or not; defaults to TRUE.
base.url:
default setting for the base url to download code sniplets from (character); defaults to "http://r-forge.r-project.org/plugins/scmsvn/viewcvs.php/*checkout*/pkg/"
addRset:
logical; default for argument add in command Rset; defaults to TRUE
addRdset:
logical; default for argument add in command Rdset; defaults to TRUE
addRinset:
logical; default for argument add in command Rinset; defaults to TRUE
addRoutset:
logical; default for argument add in command Routset; defaults to TRUE
addRcodeset:
logical; default for argument add in command Rcodeset; defaults to TRUE
fileCommand:
character; the TeX code to define TeX command \file; defaults to "\def\file#1{{\tt #1}}"
pkgCommand:
character; the TeX code to define TeX command \pkg; defaults to "\def\pkg#1{{\tt \"#1\"}}"

See Also

options, getOption

Examples

Run this code
SweaveListingOptions()
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