View source: R/startup.utilities.R
default_options | R Documentation |
options()
according to a named list, skipping those already
set.This function can be useful for setting default options, which do not override options set elsewhere.
default_options(...)
... |
see |
The return value is same as that of options()
(omitting
options already set).
options(onesetting=1)
default_options(onesetting=2, anothersetting=3)
stopifnot(getOption("onesetting")==1) # Still 1.
stopifnot(getOption("anothersetting")==3)
default_options(list(yetanothersetting=5, anothersetting=4))
stopifnot(getOption("anothersetting")==3) # Still 3.
stopifnot(getOption("yetanothersetting")==5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.