Learn R Programming

poems (version 1.3.1)

SimulatorReference: R6 class for a simulator reference

Description

R6 class for dynamically attaching simulator attributes and results (passed by reference).

Arguments

Public fields

attached

A list of dynamically attached simulator attributes (name-value pairs).

results

A list of dynamically accessed simulator results (name-value pairs).

Methods


Method clone()

The objects of this class are cloneable with this method.

Usage

SimulatorReference$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

Run this code
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