maeve_defaults: Return default valus of global options for maeve

Description Usage Arguments Value Author(s) Examples

View source: R/options.R

Description

The function accepts either comma-spaced option names as character strings, a concatenated character vector of such names, or integer positions in the option list. It returns the default values corresponding to the input, without resetting the existing option values.

Usage

1

Arguments

...

either comma-spaced option names as character strings, a concatenated character vector of such character strings, or integer positions in the option list.

Value

A list with maeve package defaults values for named parameters, but without resetting any option values. If no names are specified, then the entire list of defaults is returned.

Author(s)

Bill Forrest forrest@gene.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
 cat( paste( 'maeve::maeve_defaults() returns default parameter',
             'values without resetting the current options.'
            ) 
    )
 ## Not run:  maeve_defaults( 'spline_color' );
           maeve_defaults( 'spline_color', 'alpha_value' );
           maeve_defaults( c( 'spline_color', 'alpha_value' ) );
           maeve_defaults( 1:3 ); # return defaults for first 3 components of maeve_options().
           ##
           maeve_options( alpha_value = 0.5 ) # change something.
           maeve_defaults( 'alpha_value' ); #
           ## Observe that the newly set value persists until maeve_reset() is called.
           maeve_options( 'alpha_value' )
          
## End(Not run)

wfforrest/maeve documentation built on Jan. 1, 2021, 12:47 p.m.