Base class that implements some basic properties for printing to console.
Examples
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()
#> Warning: ospsuite.utils::Printable was deprecated in ospsuite.utils 1.6.2.
#> ℹ Please use ospsuite.utils::ospPrint*() instead.
#> ℹ The deprecated feature was likely used in the ospsuite.utils package.
#> Please report the issue at
#> <https://github.com/open-systems-pharmacology/OSPSuite.RUtils/issues>.
x
#> myPrintable:
#> x: NULL
#> y: NULL