Learn R Programming

frab (version 0.0-6)

print: Methods for printing frabs

Description

Methods for printing frabs nicely

Usage

# S4 method for frab
show(object)
frab_print(object)

Value

Returns its argument, invisibly

Arguments

object

An object of class frab

Author

Robin K. S. Hankin

Details

The method is sensitive to option frab_print_hash. If TRUE, the hash code is printed; otherwise it is not.

Function frab_print() returns its argument, invisibly.

There is special dispensation for the empty frab object.

Examples

Run this code

print(rfrab())  # default

options(frab_print_hash = TRUE)
print(rfrab())  # prints hash code

options(frab_print_hash = NULL)  # restore default

Run the code above in your browser using DataLab