Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clickable hyperlink Shiny R

I've tried this code to create a clickable hyperlink in Shiny Dashboard, but the image doesn't show up for some reason (I get a question mark kind of an icon, but it's hyperlinked)

`dashboardBody(

tabItems(
tabItem("icratio",
        fluidRow(
          a(img(src="image.png"), href="https://google.com")

        )
)
 )
)`

What could be the problem?

like image 956
thecoder Avatar asked Jan 29 '26 01:01

thecoder


1 Answers

Putting tags$a should work.

tabItem("icratio",
    fluidRow(
      tags$a(img(src="image.png"), href="https://google.com")
    )
)
like image 103
Oleole Avatar answered Jan 31 '26 22:01

Oleole



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!