Create URL hyperlink in R Shiny?

前端 未结 2 1738
滥情空心
滥情空心 2020-12-06 00:33

My code:

library(shiny)
runApp(
  list(ui = fluidPage(
     uiOutput(\"tab\")
    ),
  server = function(input, output, session){
    url <- a(\"Google Ho         


        
2条回答
  •  广开言路
    2020-12-06 01:14

    By using paste, you're treating the url as a string. The function you want to use here is tagList:

    runApp(
      list(ui = fluidPage(
         uiOutput("tab")
        ),
      server = function(input, output, session){
        url <- a("Google Homepage", href="https://www.google.com/")
        output$tab <- renderUI({
          tagList("URL link:", url)
        })
      })
    )
    

提交回复
热议问题