toString.siglist {sig}R Documentation

Print a siglist object

Description

Prints a list of function signature objects.

Usage

## S3 method for class 'siglist'
toString(x, width = getOption("width"), ...)

## S3 method for class 'siglist'
print(x, width = getOption("width"), ...)

Arguments

x

An object of class siglist.

width

Width of string to display.

...

Passed to the equivalent sig method.

Value

toString creates a string representation of a function signature. print is mostly invoked for the side effect of printing a function signature, invisibly returning its input.

Examples

method_sigs <- list_sigs(pkg2env(methods))
print(method_sigs)
print(method_sigs, width = 40)
print(method_sigs, width = 40, exdent = 2)
toString(method_sigs)

[Package sig version 0.0-6 Index]