【发布时间】:2017-06-19 21:32:57
【问题描述】:
我在这里遗漏了一些东西,因为图像没有显示。
谢谢。
shinyServer(function(input, output) {
src = "einstein.jpg"
print(file.exists(src))
out = '<img src="einstein.jpg" style=width:304px;height:228px;>'
output$text3<-renderText(out)
})
shinyUI(fluidPage(
htmlOutput("text3")
))
【问题讨论】:
-
您是要显示 jpg 还是与 html 标签关联的代码?