Tags$img problem with srcset

shiny

#1

Hello I want use parametr srcset for set responsivity in images but if i used some like this

tags$img(src="shiny.png",srcset="small.png 600w, medium.png 1024w, large.png 1600w")

Rstudio give me error message.


#2

What error do you get? If possible, it would be helpful to give a reproducible example, (FAQ: What's a reproducible example (`reprex`) and how do I do one?)


#3

This is working ok.

box(tags$img(src="1.jpg",srcset="smaller.jpg 1024w"))