I am generating svg files in Shiny using graphviz dot. They have clickable links. I am doing it like this.
imageOutput("imagegraph",width = "100%", height = "auto",inline=F)
...
output$imagegraph <- renderImage({
...
list(src = svgGeneratedOnTheFlyByGraphviz.svg,
align="top",
width=wid,
contentType="text/svg+xml"
)
)
The problem is that although the actual image as viewed through "open image in new tab" does have the clickable links, within the div generated by Shiny, nothing is clickable. Also the text is not selectable, which is strange. (Can't post a complete reproducible example because the code to produce the .svg using Graphviz is pretty hairy and has a lot of dependencies.) I tried fiddling with all the parameters including contentType but nothing helps.