These functions work similar to renderText
and verbatimTextOutput
but
will include highlighting with highlight.js
and rstudio.css
.
renderCode(expr, env = parent.frame(), quoted = FALSE, outputArgs = list(), delay = 100) codeOutput(outputId)
expr | An expression that returns an R object that can be used as an
argument to |
---|---|
env | The environment in which to evaluate |
quoted | Is |
outputArgs | A list of arguments to be passed through to the implicit
call to codeOutput when |
delay | How much delay to use (in ms) between rendering and firing the
syntax highlighting script. For |
outputId | output variable to read the code from. |