Skip to contents

See wm_opts_defaults() for explanations of the default options.

Usage

wm_opts(...)

Arguments

...

One of four: (1) nothing, then returns all options as a list; (2) a name of an option element, then returns its value; (3) a name-value pair which sets the corresponding option to the new value (and returns nothing), (4) a list with option-value pairs which sets all the corresponding arguments.

Value

a list of options, values of an option, or nothing

Examples


wm_opts() # see all options
#> $connection
#> A connection with                      
#> description "stdin"   
#> class       "terminal"
#> mode        "r"       
#> text        "text"    
#> opened      "opened"  
#> can read    "yes"     
#> can write   "no"      
#> 
#> $fill
#> [1] "white"
#> 
#> $line.color
#> [1] "blue"
#> 
#> $overwrite
#> [1] "ask"
#> 
#> $plot
#> [1] "inline"
#> 
#> $plot.maxheight
#> [1] 2400
#> 
#> $plot.maxwidth
#> [1] 2400
#> 
#> $pt.color
#> [1] "green"
#> 
#> $server
#> [1] "https://webmorph.org"
#> 
#> $verbose
#> [1] TRUE
#> 

wm_opts("verbose") # see value of webmorph.verbose
#> [1] TRUE

if (FALSE) {
# set value of webmorph.verbose
wm_opts(verbose = FALSE) 

# set multiple options
opts <- list(fill = "black",
             pt.color = "white", 
             line.color = "red")
wm_opts(opts)
}