| print.glyph_spec | R Documentation |
A printed spec draws itself. At the console it opens in the
viewer, and in R Markdown, Quarto and vignettes it is embedded in the
document. Call render() only to set the width and height, and use
summary() for a text description.
In a non-interactive session that isn't knitting a document, such as
Rscript, there is nowhere to draw, so printing gives a one-line
description instead.
## S3 method for class 'glyph_spec'
print(x, ...)
## S3 method for class 'glyph_spec'
knit_print(x, ..., options = NULL)
x |
A glyph_spec object |
... |
Passed on to knitr when knitting; otherwise ignored. |
options |
knitr chunk options, supplied by knitr. |
print() invisibly returns x. knit_print() returns the
rendered widget's HTML for knitr to include in the document.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.