opts {limonaid} | R Documentation |
Options for the limonaid package
Description
The limonaid::opts
object contains three functions to set, get, and reset
options used by the escalc package. Use limonaid::opts$set
to set options,
limonaid::opts$get
to get options, or limonaid::opts$reset
to reset specific or
all options to their default values.
Usage
opts
Format
An object of class list
of length 4.
Details
It is normally not necessary to get or set limonaid
options.
The following arguments can be passed:
- ...
For
limonaid::opts$set
, the dots can be used to specify the options to set, in the formatoption = value
, for example,silent = FALSE
. Forlimonaid::opts$reset
, a list of options to be reset can be passed.- option
For
limonaid::opts$set
, the name of the option to set.- default
For
limonaid::opts$get
, the default value to return if the option has not been manually specified.
The following options can be set:
- silent
Whether to be chatty or silent.
- encoding
The encoding to use when writing files.
- preventOverwriting
The name of the column with the missing values.
Examples
### Get the default silent setting
limonaid::opts$get('silent');
### Set it to FALSE
limonaid::opts$set(silent = FALSE);
### Check that it worked
limonaid::opts$get('silent');
### Reset this option to its default value
limonaid::opts$reset('silent');
### Check that the reset worked, too
limonaid::opts$get('silent');