record_print | R Documentation |
record()
An S3 generic function to be called to print visible values in code when the
code is recorded by record()
. It is similar to knitr::knit_print()
. By
default, it captures the normal print()
output and returns the result as a
character vector. The knitr_kable
method is for printing knitr::kable()
output. Users and package authors can define other S3 methods to extend this
function.
record_print(x, ...)
## Default S3 method:
record_print(x, ...)
## S3 method for class 'record_asis'
record_print(x, ...)
new_record(x, class)
x |
For |
... |
Other arguments to be passed to |
class |
A class name. Possible values are |
A record_print()
method should return a character vector or a list
of character vectors. The original classes of the vector will be discarded,
and the vector will be treated as console output by default (i.e.,
new_record(class = "output")
). If it should be another type of output,
wrap the vector in new_record()
and specify a class name.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.