Description Format Construction Public Fields Public Methods
ContainerGeneric is the base class for the Container classes. ContainerGeneric isn't supposed to be use directly.
R6::R6Class object inheriting from Generic
1 | x <- ContainerGeneric$new()
|
NULL
Cont
A named list that contains objects of any type.
add(x)
(any objects)
Add x to self$Cont.
check_pos(x)
(integer(1)) -> (logical(1))
Check if the position in x exists in self$Cont.
get(x)
(integer(1)) -> (an object)
Get a object in x element of self$Cont.
n()
() -> (integer(1))
Returns the length of self$Cont.
print()
remove(x)
(integer(1))
Remove the object at the x element of self$Cont.
unpack(target)
(Container)
Add all the objects in self$Cont to another target Container.
summary()
Abstract method.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.