Based on the code below, how can I create a app out of an interactive HTML file? Currently, I am getting a blank app. The HTML file sits in the same folder (also set as the working directory) as the app
file, do I need to put the HTML file in a separate www
folder?
I already looked at Display HTML file in Shiny App and How can I display a local html file in Shiny UI dynamically?
library(shiny)
ui <- fluidPage(
htmlOutput("infographic")
)
server <- function(input,output){
output$infographic <- renderUI({
tags$iframe(seamless="seamless",
src= "O:/psd/sbaloch/InfographicShinyAPp/Infographic/Hub_Infographic.html",
width=800,
height=800)
})
}
shinyApp(ui, server)
Approach 2 also returns a empty blank app
library(shiny)
ui <- fluidPage(
htmlOutput("infographic")
)
server = function(input, output, session){
output$infographic <- renderUI({
includeHTML("O:/psd/sbaloch/InfographicShinyAPp/Infographic/Hub_Infographic.html")
# HTML(readLines(file_to_show))
})
}
shinyApp(ui, server)