powered by
R6 class for dynamically attaching simulator attributes and results (passed by reference).
R6
attached
A list of dynamically attached simulator attributes (name-value pairs).
results
A list of dynamically accessed simulator results (name-value pairs).
SimulatorReference$clone()
clone()
The objects of this class are cloneable with this method.
SimulatorReference$clone(deep = FALSE)
deep
Whether to make a deep clone.
test_class <- SimulatorReference$new() test_class$attached$attr1 <- "example1" test_class$results$attr1 <- "example2" str(test_class)
Run the code above in your browser using DataLab