ParamList | R Documentation |
R6 class representing the set of parameters used in an analysis
R6 class representing the set of parameters used in an analysis
new()
Create a new set of parameters.
ParamList$new(defaults = list())
defaults
Named list of default values. Names are the parameters, and the values will be their default.
An object that will store all future values of analysis parameters.
set()
Set the value of a parameter
ParamList$set(id, value, description = "", div = TRUE)
id
The name of the parameter to be set.
value
The value the parameter should taken henceforth; if missing, it will take the default value.
description
A string describing what the purpose of the parameter is.
div
Logical, whether to mention in the markdown report what the value has been set to.
get()
Get the value that the parameter is currently set to.
ParamList$get(id)
id
Name of the value you want to access.
publish()
Turn the mutable object into a list
ParamList$publish()
describe()
Get a text description of what the setting is, and what value it currently takes.
ParamList$describe(id)
id
Name of the value you want to access.
clone()
The objects of this class are cloneable with this method.
ParamList$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.