new_with_repaired_slots: Instantiate a class, but warn rather than error for badly...

View source: R/helper-methods.R

new_with_repaired_slotsR Documentation

Instantiate a class, but warn rather than error for badly named slots

Description

Instantiate a class, but warn rather than error for badly named slots

Usage

new_with_repaired_slots(classname, ..., extra)

Arguments

classname

'character' naming a class

...

slots in 'classname'

extra

named list giving other slots in 'classname'

Value

'new(classname)'

Examples

MAST:::new_with_repaired_slots("SimpleList",  listData = list(x = LETTERS), 
extra = list(elementType = 'character', food = "tasty", beer = "cold"))

RGLab/MAST documentation built on Sept. 30, 2023, 1:08 p.m.