How to get data without index number in shiny

后端 未结 1 638
抹茶落季
抹茶落季 2021-01-24 16:46

I am getting the value [1] 0.7976529 by using verbatimTextOutput(\"oaccura\") on ui.r and output$oaccura<-renderPrint({a3}) on server.r but i want

相关标签:
1条回答
  • 2021-01-24 17:14

    Maybe you can use renderText instead

    library(shiny)
    a3 <- 0.7976529
    ui  <- fluidPage(verbatimTextOutput("oaccura"))
    server <- function(input, output, session) {
      output$oaccura <- renderText({a3})
    }
    runApp(list(ui = ui, server = server))
    

    0 讨论(0)
提交回复
热议问题