R ShinyApp图像在windows上显示,但在linux上未显示
我有一个在ubuntu和linux服务器上没有显示但在windows上出现的图像问题。 该图像包含在一个闪亮的应用程序中 代码如下:R ShinyApp图像在windows上显示,但在linux上未显示,r,shiny,shinydashboard,R,Shiny,Shinydashboard,我有一个在ubuntu和linux服务器上没有显示但在windows上出现的图像问题。 该图像包含在一个闪亮的应用程序中 代码如下: sidebar <- dashboardSidebar( sidebarUserPanel(name = "yo", subtitle = "ye"), # sidebarSearchForm(label = "Rechercher", "search", "searchButton"), sidebarM
sidebar <- dashboardSidebar(
sidebarUserPanel(name = "yo",
subtitle = "ye"),
# sidebarSearchForm(label = "Rechercher", "search", "searchButton"),
sidebarMenu(
tags$p(HTML('<img src="baba_logo.png" alt="Smiley face" height="200" width="230">'),
style = "font-size: 100%;"),
menuItem("yo !!", tabName = "fpc", icon = icon("table")),
menuItem("yee !!", tabName = "rrn", icon = icon("th")),
br()
)
);
侧边栏代替标签$p(HTML(…)
,你可以尝试使用img(src=“baba_logo.png”,height='200px',width='230px')
并将图像放置在www/baba_logo.png
在windows上运行良好,我会在linux桌面上尝试它。我不知道为什么,但当我重新放置“.png”by“.jpg”时问题得到了解决。。。谢谢你的帮助