breedR.option | R Documentation |
Set and get global options for breedR. The options are stored in the variable
breedR.options
in the .GlobalEnv
-environment, and will therefore persist during the session. If you want to set some options permanently do it in a file names .breedRrc
in your home directory. See Examples.
breedR.getOption(
option = c("ar.eval", "breedR.bin", "splines.nok", "default.initial.variance",
"col.seq", "col.div", "cygwin", "cygwin.home", "ssh.auth.sock", "remote.host",
"remote.user", "remote.port", "remote.bin", "ssh.options")
)
breedR.setOption(...)
option |
The option to get. If missing or
|
... |
Option and value, like |
Sequential scales are used for variables not necessarily centered such as a
response variable, or the fitted values of a model. The colour scale is built
as a gradient between two extreme colours which are specified as hex codes or
colour names in the option col.seq
.
Diverging scales are used for plots such as residuals, centered (hopefully)
around zero, with positive and negative values represented with different
colours whose intensity is linked to the magnitude. The option col.div
is a vector of two hex codes or colour names of the most intense colours.
## Set default values for the autoregressive parameters
breedR.setOption("ar.eval", 3*(-3:3)/10)
## alternative format
breedR.setOption(ar.eval = 3*(-3:3)/10)
## check it
breedR.getOption("ar.eval")
## Not run:
# Set up some options permanently in $HOME/.breedRrc
writeLines(c("remote.host = '123.45.678.999'",
"remote.user = 'uname'",
"remote.bin = 'remote/path/to/breedR/bin/linux'"),
con = file.path(Sys.getenv('HOME'), '.breedRrc')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.