opts | R Documentation |
The justifier::opts
object contains three functions to set, get, and reset
options used by the escalc package. Use justifier::opts$set
to set options,
justifier::opts$get
to get options, or justifier::opts$reset
to reset specific or
all options to their default values.
opts
An object of class list
of length 4.
If you use justifier to programmatically document your decisions in an
R file, there is one option that you common use: workspace_id
and
workspace_option_name
It is normally not necessary to get or set justifier
options.
The following arguments can be passed:
For justifier::opts$set
, the dots can be used to specify the options
to set, in the format option = value
, for example,
EFFECTSIZE_POINTESTIMATE_NAME_IN_DF = "\n"
. For
justifier::opts$reset
, a list of options to be reset can be passed.
For justifier::opts$set
, the name of the option to set.
For justifier::opts$get
, the default value to return if the
option has not been manually specified.
The following options can be set:
Default regex replacements when sanitizing for DiagrammeR
When creating the diagram showing the justification for a decision, the name of the field with the weight.
When creating the diagram showing the justification for a decision, the colour to use for edges with negative weights
When creating the diagram showing the justification for a decision, the colour to use for edges with positive weights
When creating the diagram showing the justification for a decision, the color for nodes
When creating the diagram showing the justification for a decision, the color for edges
When creating the diagram showing the justification for a decision, the pen widht
The default identifier for the workspace (when nothing else is specified)
The name of the default workspace
Whether to be chatty or silent
### Get the default 'silent' setting justifier::opts$get('silent'); ### Set to FALSE justifier::opts$set(silent = FALSE); ### Check that it worked justifier::opts$get('silent'); ### Reset this option to its default value justifier::opts$reset('silent'); ### Check that the reset worked, too justifier::opts$get('silent');
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.