【发布时间】:2019-06-23 21:03:30
【问题描述】:
我的目标是在selectInput 按钮的标签中包含一个操作链接(显示帮助文本)。
library(shiny)
ui <- fluidPage(
br(),
selectInput(
inputId = "some_id",
label = "Please choose A or B (get help)",
choices = c("choice A", "choice B"),
selected = "choice A",
selectize = F
),
actionLink(inputId = "action_link", label = "get help")
) # fluidPage
server <- function(input, output) {}
shinyApp(ui, server)
我猜解决方法是使用label = HTML(...),但是我不知道如何用纯html重写动作链接。
【问题讨论】: