【发布时间】:2016-04-13 13:47:59
【问题描述】:
renderImage 在尝试从 Internet 渲染图像时不起作用。当图像在本地机器上时,它可以工作。
output$myImage <- renderImage({
pfad <- "https://www.rstudio.com/wp-content/uploads/2014/03/blue-125.png"
list(src = pfad,
contentType = 'image/png',
width = 400,
height = 300,
alt = "This is alternate text")
}, deleteFile = F)
imageOutput("myImage")
【问题讨论】:
-
可能直接使用
img()标签。见shiny.rstudio.com/reference/shiny/latest/builder.html