View source: R/parse_multiverse.R
parse_multiverse | R Documentation |
In a multiverse, the user can define different values that a parameter can take using the branch()
call.
The parse_multiverse()
identifies the branch()
calls defined in the analysis syntax and parses them into a list of
parameters and the corresponding values that each parameter can take. This function is called automatically
and not exported.
parse_multiverse(.multiverse, .expr, .code, .label)
.multiverse |
The multiverse object which will contain the analysis |
.expr |
The expression that is being parsed |
.code |
All the code that has been passed to the multiverse |
.label |
The label of the code block or inside call which was used to pass the code being parsed into the multiverse |
parse_multiverse()
returns a list of lists. the list of parameters and the list of conditions.
The list of parameters is a named list which defines all the values that each defined parameter can take.
The list of conditions defines, if any of the parameter values are conditional on a specific value of another
parameter, the condition.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.