| .print.via.format | R Documentation |
.print.via.format is a “prototype” print()
method, useful, at least as a start, by a simple
print.<myS3class> <- .print.via.format
.print.via.format(x, ...)
x |
object to be printed. |
... |
optional further arguments, passed to |
x, invisibly (by invisible()), as
print methods should.
The print generic; its default method
print.default (used for many basic implicit classes such
as "numeric", "character" and arrays of
them, lists etc).
## 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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.