I am having trouble displaying an image in a Shiny app. The code is saved in Desktop, where I also have a www folder with logo.png. I've set the working directory to the desktop, as well:
library(shiny)
library(png)
ui <- fluidPage(
img(src="logo.png", height = 400, width = 400)
) #close fluidpage
server <- function(input, output, session){
} # closer server
shinyApp(ui=ui, server=server)
I prefer to have server and ui in the same file for ease of understanding. Perhaps that is the issue?