我正在努力为Rshiny中的html小部件添加工具提示。来自bs_embed_tooltip
的{{1}}为一些闪亮的小部件做了工作,但在应用于html小部件时会返回以下错误:
library(flexdashboard)
这是我的最小工作示例(修改shinydashboard的示例代码):
Error in .tag_validate(.) :
tag is not a shiny.tag - tag must be generated using htmltools or shiny
我非常感谢您帮助我解决评论中的代码。
答案 0 :(得分:1)
尝试使用这个仪表盒的新盒子:
box(title = "Guage",
gaugeOutput("guage_value"),
bsTooltip(id = "guage_value", title = "This gauge shows the input value from the slider.", placement = "bottom")
)