makecallout {qreport} | R Documentation |
makecallout
Description
General Case Handling of Quarto Callouts
Usage
makecallout(...)
Arguments
... |
can be any of the following
|
Details
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.
Value
if code is not executed, returns a character vector with the code to run
Author(s)
Frank Harrell
Examples
x <- 1:3
co <- '.callout-note collapse="true'
makecallout(x, callout=co, label='# thislabel', type='print')
makecallout(thislabel ~ x, callout=co, type='print')