as.character.emphatic | R Documentation |
emphatic
data.frame, matrix or atomic vector into a character string.The output contains ANSI escape codes to colour the elements in the
object. This string would then be suitable to pass on to fansi
for further manipulation e.g. conversion to HTML for displaying in a vignette.
## S3 method for class 'emphatic'
as.character(x, ..., mode = "ansi")
x |
|
... |
other arguments passed on to |
mode |
Render mode 'ansi' (default) or 'html' determines how the colours will be represented in text. If you're in a terminal or console, then choose 'ansi'. |
A character string of the requested mode
mtcars |>
as_emphatic() |>
as.character()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.