I have an image i'd like to embed into my shiny app, and have read as much as I can find on how to do it. Although, all I get is a blue question mark when I run my code.
This is the line of code I have added, within the fluidPage
ui
command
img(src="logo.png", align = "right",height='100px',width='400px')
My image has been placed in the project directory folder, as well as trying in a separate folder inside named www (as per suggestion given here)
EDIT: Code used in the following context:
ui <- fluidPage(titlePanel("Test title"),
img(src="logo.png", align = "right",height='100px',width='400px'),
hr())
sidebarPanel
insidesidebarLayout
influidPage
and placing the image inwww/logo.png
works just fine. Can you maybe share the code of the particular app which fails for you? Thanks! – aolesrunGitHub("aoles/SO_38011285")
. Maybe you have a typo in the image path, or some other problem with the image file itself? – aolesimg()
on the ui side. Using identical path but rendering from the server side works fine. – hartmut