S3 generic for retrieving the objects contained in a collection.
The TrialComparison method delegates to $getObjects().
The TrialComparison method returns the list of contained objects.
Value
For TrialComparison, the list of contained objects in their stored
order, retaining supplied names, or an empty list for an empty comparison.
Details
The returned list contains references to the original R6 objects. Changing
a contained object affects subsequent comparisons. Replacing or removing
entries in the returned list does not change the comparison's membership;
use add() and delete() to modify the collection.
Examples
comparison <- getComparison(fixed = getDesignFixed(),
sequential = getDesignGroupSequential(kMax = 2))
objects <- comparison |> getObjects()
names(objects)
#> [1] "fixed" "sequential"
identical(objects$fixed, comparison$fixed)
#> [1] TRUE
