Description Usage Arguments Details Value Examples
Render a reactive output variable as verbatim text within an
application page. The text will be included within an HTML pre
tag.
1 | verbatimTextOutput(outputId, placeholder = FALSE)
|
outputId |
output variable to read the value from |
placeholder |
if the output is empty or |
Text is HTML-escaped prior to rendering. This element is often used with the renderPrint function to preserve fixed-width formatting of printed objects.
A verbatim text output element that can be included in a panel
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Only run this example in interactive R sessions
if (interactive()) {
shinyApp(
ui = basicPage(
textInput("txt", "Enter the text to display below:"),
verbatimTextOutput("default"),
verbatimTextOutput("placeholder", placeholder = TRUE)
),
server = function(input, output) {
output$default <- renderText({ input$txt })
output$placeholder <- renderText({ input$txt })
}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.