R6template: R6template

Description Public fields Active bindings Methods Examples

Description

A template for building documented, tested R6 classes

Public fields

id

identifier for a class object

Active bindings

id

identifier for a class object

Methods

Public methods


Method new()

Creates a new instance of this [R6][R6::R6Class] class.

Usage
R6template$new(id)
Arguments
id

character, an indentifier for this object

Returns

a new instance o R6template


Method getID()

accessor for the object's id field

Usage
R6template$getID()
Returns

the current value of the id member


Method clone()

The objects of this class are cloneable with this method.

Usage
R6template$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

1
  rt <- R6Template$new(id="abc")

paul-shannon/R6-template documentation built on Dec. 22, 2021, 6:42 a.m.