There are a few options do this. However, it would be helpful to see a reprex.
There was a discussion on this topic a few months back on using hyperlinks to navigate to other pages (see the last comment).
To integrate this in images, wrapping tags$img
inside the tags$a
should do the trick.
tags$a("Some Title",
onclick="customHref('some-destination')",
tags$img(src = "path/to/image/image.png", alt= "my cool image")
)
1 Like