Hi Ramnath, The code is running on internal servers.
In server.R I have the following:
output$showfile <- reactiveUI(function(){
file_to_show = 'AAPL.html'
includeHTML(file_to_show)
})
In ui.R I have
tabPanel("Result",
uiOutput("showfile")),
includeHTML just does not work. Even on the R studio console, when I used includeHTML('AAPL.html'), I get the following error:
Error in dependsOnFile(path) :
addFileDependency was called at an unexpected time (no cache context found)
The html file is in the same directory (as the shiny app) so are the .Rmd files which generated the html (it includes price plot and some tables).
Would there be someway to get rid of the cache problem, which may probably solve this. Also dependsOnFile(path) part of the error might suggest that the html file is in some other directory, but they are not, which is even more confusing. I tried this with Hello Shiny/example one from shiny's website with two tabs, the first one as shown on the website and the second as above. But even there I get the same error.
Are you being able to load html files easily using the above procedure?
Thank you for helping.
Megh