Printable: Printable

PrintableR Documentation

Printable

Description

Base class that implements some basic properties for printing to console.

Methods

Public methods


Method clone()

The objects of this class are cloneable with this method.

Usage
Printable$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

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()
x

ospsuite.utils documentation built on March 18, 2022, 6:44 p.m.