in HTML, it should be like this
<a href="https://newsite.com"><img src="image.png" title="Example Image Link" width="600" height="400" /></a>
that could be written as is or using htmltools shiny helper
tags$a(
href="https://newsite.com",
tags$img(src="image.png",
title="Example Image Link",
width="600",
height="400")
)
I think you can adapt to your example and use case.
Hope it helps