Currently I am running Shiny app locally and trying to display a PNG image (Name : download.png), which is saved locally in the 'www' folder under my Working directory.
Now I want to display that image in my Browser locally, so I have below simple code (please note that I didnt save below code in my disk, I just have written this code and sitting in my R code editor - Sublime Text) :
runApp(list(
ui = fluidPage(
tags$img(src = 'www/download.png')
),
server = function(input, output) {
}
))
However unfortunately above code could not display the image in the Browser. However R could affirm availability of the file :
> file.exists('www/download.png')
[1] TRUE
Can someone confirm where I went wrong?