Cannot open external link in includeMarkdown anymore?

shiny
rstudio

#1

I wrote some help documents in Markdown for my Shiny app, and use shiny::includeMarkdown to show them.

I think I used to be able to click and open a link, but now it doesn't do anything. I can use right click to "open in browser" though.

Is this behavior expected because of security limit? Or is it the new Chromium engine in RStudio?

For example:

test.md content:

[external link](http://rstudio.com)

code example

library(shiny)
ui <- fluidPage(
  includeMarkdown("test.md")
)
server <- function(input, output){}
shinyApp(ui = ui, server = server)

#2

You're talking about opening these links when running the app within RStudio, rather than when it's deployed elsewhere, yes? I can't see anything wrong with the generated HTML for the app, so I'm assuming this works properly if deployed.

If that's the case, then I'd suggest maybe moving this to the #rstudio-ide category since it's more about IDE-specific behavior than about shiny.


#3

Yes, the link works in browser mode, but not in the builtin browser of RStudio. I moved the post to #rstudio-ide. Thanks for the suggestion!