Learn R Programming

codelist (version 0.1.0)

format.code: Format a code object for pretty printing

Description

Format a code object for pretty printing

Usage

# S3 method for code
format(x, maxlen = getOption("CLMAXLEN", 8L), ...)

Value

A character vector with the formatted code.

Arguments

x

a code object

maxlen

maximum length of the label. A length of 0 or lower will suppress adding the label to the output.

...

ignored

When maxlen is one or larger function will add the label of the code to the code in square brackets. When the label is larger than maxlen the label will be truncated.