I want to show an image in a shiny UI cell using tableHTML. However, it is simply displaying the text. Any help?
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)
)}
)