If you put your picture einstein.jpg
in a img/
subfolder of your app, you can use addResourcePath
to allow access to it:
library(shiny)
shinyApp(ui=fluidPage(htmlOutput("text3")),
server=(function(input, output) {
addResourcePath("foo", "img")
out = '<img src="/foo/einstein.jpg" style=width:304px;height:228px;>'
output$text3<-renderText(out)
}))
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…