pre | R Documentation |
The pre
function adds a maximum height and scroll bar to the standard
<pre>
element.
pre(...)
... |
Text, tag elements, or named arguments passed as HTML attributes to the tag. |
Other components:
alert()
,
badge()
,
blockquote()
,
card()
,
collapsePane()
,
d1()
,
dropdown()
,
img()
,
jumbotron()
,
modal()
,
navContent()
,
popover()
,
toast()
### Simple example
pre(
"shinyApp(",
" ui = container(",
" columns(",
" column(",
" ",
" )",
" )",
" )",
" server = function(input, output) {",
" ",
" }",
")"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.