Skip to content
Prev 43294 / 63421 Next

setting global options for a package

Or slightly more conveniently, use the default value of getOption() to return the vector
of color names if the option is not set, e.g.

 foo <- function(x, heplot.colors = getOption("heplot.colors",
                                               c("red", "blue", "black", "darkgreen", "brown", "darkgray")), ...)  {


   D.
On 5/10/12 10:09 AM, Simon Urbanek wrote: