| Printable | R Documentation |
Base class that implements some basic properties for printing to console.
clone()The objects of this class are cloneable with this method.
Printable$clone(deep = FALSE)
deepWhether to make a deep clone.
myPrintable <- R6::R6Class(
"myPrintable",
inherit = Printable,
public = list(
x = NULL,
y = NULL,
print = function() {
private$printClass()
private$printLine("x", self$x)
private$printLine("y", self$y)
invisible(self)
}
)
)
x <- myPrintable$new()
x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.