My images are not displaying when I use shiny in a R package structure.
Within my R directory, I have a file myApp.R with a general outline as follows:
@param1
myFunction = function(param1){
sidebar <- dashboardSidebar(...)
body <- dashboardBody(...)
ui <- dashboardPage(...)
server <- function(input, output, session) { img(src='Figure1.png')}
shinyApp(ui = ui, server = server)
}
I tried having Figure1.png inside R/www and also in inst/www, but neither location seemed to create the figures when I ran myFunction(param1). It would create the general application - but the images would just be absent.
Is there a simple workaround for this problem? Thank you.
.png
and.PNG