print.siglist: Print a siglist object

Description Usage Arguments Value Examples

Description

Prints a list of function signature objects.

Usage

1
2
3
4
5
## 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

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

sig documentation built on May 1, 2019, 8:45 p.m.