Skip to contents

Creates an output element that can be embedded inline within text.

Usage

inlineOutput(outputId)

Arguments

outputId

The output identifier used to update the value from server logic

Value

A Shiny UI output element configured for inline display

Examples

library(shiny)

ui <- fluidPage(
  p("The result is", inlineOutput("result"))
)

server <- function(input, output) {
  output$result <- renderInline({
    # Will be formatted to one decimal place
    42.123
  })
}

if (interactive()) {
 shinyApp(ui, server)
}