Printing Utilities

Description

.print.via.format is a “prototype” print() method, useful, at least as a start, by a simple

1
    print.<myS3class>  <-  .print.via.format

Usage

1
.print.via.format(x, ...)

Arguments

x

object to be printed.

...

optional further arguments, passed to format.

Value

x, invisibly (by invisible()), as print methods should.

See Also

The print generic; its default method print.default (used for many basic implicit classes such as "numeric", "character" and arrays of them, lists etc).

Examples

1
2
3
4
5
6
7
## The function is simply defined as
 function (x, ...) {
    writeLines(format(x, ...))
    invisible(x)
 }

## is used for simple print methods in R, and as prototype for new methods.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.