From ?Tooltips_and_Popovers :
The user interface of your application must have at least one shinyBS component loading order for the necessary dependencies. Because of this, addTooltip and addPopover will not work if they are the only shinyBS components in your application.
To make pop work, you can change actionButton to bsButton and change server.R to contain only addPopover call. The id argument for addPopover also needs to be changed to refer to the identifier of the ui object in which you want to include pop, in your case "link" , the actionLink identifier.
Here's the code for the modified example in a self-contained code snippet:
library(shiny) library(shinyBS) runApp( # Ui list(ui = pageWithSidebar( headerPanel("Test App"), sidebarPanel( bsButton("renderButton", "Render"), actionLink("link", "Help") ), mainPanel("Hello World!") ), # Server server = function(input, output, session) { # ... dealing with renderButton ... addPopover(session=session, id="link", title="", content="Testing.", placement = "bottom", trigger = "click", options = NULL) }) )
source share