2
我想使用tableHTML在閃亮的UI單元格中顯示圖像。但是,它只是顯示文本。任何幫助?tableHTML閃亮:在單元格中顯示圖像
library(shiny)
a = data.frame(rows = 1:2, icons = '<img src =
"http://flaglane.com/download/american-flag/american-flag-graphic.png"
alt="Red Flag Warning" height="30" width="40" >')
shinyApp(
ui = fluidPage(
fluidRow(
br(),
column(width = 1),
tableHTML_output("mytable"))
),
server = function(input, output) {
output$mytable <- render_tableHTML(
tableHTML(a)
)}
)