sig (version 0.0-5)

toString.siglist: Print a siglist object

Description

Prints a list of function signature objects.

Usage

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

# S3 method for 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

Run this code
# NOT RUN {
method_sigs <- list_sigs(pkg2env(methods))
print(method_sigs)
print(method_sigs, width = 40)
print(method_sigs, width = 40, exdent = 2)
toString(method_sigs)
# }

Run the code above in your browser using DataCamp Workspace