ContentBlock
ContentBlock
Methods
Method new()
Returns a ContentBlock
object.
Usage
ContentBlock$new()
Examples
block <- teal.reporter:::ContentBlock$new()
Method set_content()
Sets content of this ContentBlock
.
Arguments
content
(
character(0)
orcharacter(1)
) a string literal or a file path assigned to thisContentBlock
Examples
block <- teal.reporter:::ContentBlock$new()
block$set_content("Base64 encoded picture")
Method get_content()
Returns the absolute path to content of this ContentBlock
Examples
block <- teal.reporter:::ContentBlock$new()
block$get_content()
Examples
## ------------------------------------------------
## Method `ContentBlock$new`
## ------------------------------------------------
block <- teal.reporter:::ContentBlock$new()
## ------------------------------------------------
## Method `ContentBlock$set_content`
## ------------------------------------------------
block <- teal.reporter:::ContentBlock$new()
block$set_content("Base64 encoded picture")
## ------------------------------------------------
## Method `ContentBlock$get_content`
## ------------------------------------------------
block <- teal.reporter:::ContentBlock$new()
block$get_content()
#> character(0)