Show-class {aoos}R Documentation

Show class

Description

This is a virtual class to be contained in other class definitions. It overrides the default show method and is intended to be used with the aoos class system (defineClass). The show method will simply look for a method show defined as member of a class definition.

Usage

## S4 method for signature 'Show'
show(object)

Arguments

object

an object inheriting from Show

See Also

defineClass

Examples

ClassWithShowMethod <- defineClass("ClassWithShowMethod", contains = "Show", {
  show <- function() print(summary(.self))
})

ClassWithShowMethod()

[Package aoos version 0.5.0 Index]