code_block | R Documentation |
Renders either a package name (as italics and formatted as code) or a function (formatted as code), optionally include a link
code_block(string, pkg = FALSE, href = NULL, noWS = NULL)
pkg |
logical, if TRUE the output text will be italicised (representing a package name). If FALSE it won't be italicised (representing a function name or arbitrary R code). |
href |
optional link to include |
code |
the text to be formatted |
a HTML string which can be inserted directly into the UI of the app, showing the code as formatted, (potentially) clickable text
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.