Hi, I'm trying to have a link that dynamically changes depending on a select input. When I try to make the href text output, the link doesn't work. I've attached a small example of my problem. Any ideas?
Thanks!
## server.r
shinyServer(function(input, output) {
output$test <- renderText({input$select})
output$url <- renderText({
paste0("https://",input$select)
})
})
## ui.r
shinyUI(pageWithSidebar(
headerPanel('Example'),
sidebarPanel(
selectInput("select", label = h3("Select Your Site"),
),
mainPanel(
tabsetPanel(
tabPanel("Example",
p(textOutput('test')),
p(textOutput('url')),
p(a("Dynamic site link", href = textOutput('url'), target = "_blank")),
)
)
)
))