jaspContainer.RdA jaspObject that can contain other jaspObjects
createJaspContainer( title = "", dependencies = NULL, position = NULL, initCollapsed = FALSE )
| title | String, title of the jaspContainer |
|---|---|
| dependencies | see jaspObject |
| position | see jaspObject |
| initCollapsed | Logical, should the container be collapsed by default? |
jaspResults::jaspObjR -> jaspResults::jaspOutputObjR -> jaspContainerR
initCollapsedis the container collapsed?
new()Create a new jaspContainer object, however, createJaspContainer is preferred.
jaspContainerR$new( title = "", dependencies = NULL, position = NULL, info = NULL, initCollapsed = FALSE, jaspObject = NULL )
titleString, title of the jaspContainer
dependenciessee [`jaspOutputObjR$position()`][jaspOutputObjR]
positionsee [`jaspOutputObjR$position()`][jaspOutputObjR]
infostring.
initCollapsedLogical, should the container be collapsed by default?
jaspObjectDo not use.
length()The number of elements inside the container
jaspContainerR$length()
library(jaspResults) container <- createJaspContainer(title = "This is a container") container$print()#> container This is a container #>container[["internal_name_1"]] <- createJaspContainer(title = "name shown to users 1") container[["internal_name_2"]] <- createJaspContainer(title = "name shown to users 2") container$print()#> container This is a container: #> "internal_name_1": #> container name shown to users 1 #> #> "internal_name_2": #> container name shown to users 2 #> #># let's reverse the position container[["subcontainer1"]]$position <- 2 container[["subcontainer2"]]$position <- 1 container$print()#> container This is a container: #> "internal_name_1": #> container name shown to users 1 #> #> "internal_name_2": #> container name shown to users 2 #> #>