makecallout | R Documentation |
General Case Handling of Quarto Callouts
makecallout(...)
... |
can be any of the following
|
This function generates and optionally runs markdown/R code that runs Quarto callouts such as collapsible notes or marginal notes. Before rendering x
, options(rawmarkup=TRUE)
is set so that Hmisc::rendHTML
will not try to protect html in things like margins. Quarto doesn't like the surrounding html protection lines in that context. The option is set back to its original value after rendering.
if code is not executed, returns a character vector with the code to run
Frank Harrell
x <- 1:3
co <- '.callout-note collapse="true'
makecallout(x, callout=co, label='# thislabel', type='print')
makecallout(thislabel ~ x, callout=co, type='print')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.