$.unitizerItem {unitizer}R Documentation

Retrieve Test Contents From Test Item

Description

Intended for use within the unitizer interactive environment, allows user to retrieve whatever portions of tests are stored by unitizer.

Usage

## S4 method for signature 'unitizerItem'
x$name

## S4 method for signature 'unitizerItem,ANY'
x[[i, j, ..., exact = TRUE]]

Arguments

x

a unitizerItem object, typically .NEW or .REF at the unitizer interactive prompt

name

a valid test sub-component

i

a valid test sub-component as a character string, or a sub-component index

j

missing for compatibility with generic

...

missing for compatibility with generic

exact

unused, always matches exact

Details

Currently the following elements are available:

Value

the test component requested

Examples

## From the unitizer> prompt:
.NEW <- mock_item()  # .NEW is normally available at unitizer prompt
.NEW$call
.NEW$conditions
.NEW$value              # equivalent to `.new`

[Package unitizer version 1.4.20 Index]