[R-es] Insertar logo en Shiny APP

Ps. Félix Pérez Villoria p@@|e||xperezv @end|ng |rom gm@||@com
Mie Mayo 28 20:58:31 CEST 2025


Prueba indicando la ruta completa al recurso.


Saludos.

El 28-05-25 a las 11:54, Clei Y escribió:
> Hola a todos
>
> Tengo problemas para insertar el logo de una empresa en un Shiny APP, 
> el código que estoy empleando es:
>
> # UI
> ui <- fluidPage(
>   titlePanel(
>     div(
>       tags$img(src = "logo.png", height = "60px", style = "float:left; 
> margin-right:15px"),
>       div(
>         h2("Simulador Multisectorial de Impacto Económico", style = 
> "color: #003366; margin-bottom: 5px;"),
>         h4("Proyecto: Distrito Puerto Interior")
>       ),
>       style = "overflow: hidden;"
>     )
>   )
>
>
> *El logo si está bien ubicado:*
>
> > print(file.exists("www/logo.png"))
> [1] TRUE
>
> > list.files("www")
> [1] "logo.png"  "logo2.png" "logo3.jpg" "logo4.gif"
>
>
> *En R-Studio si puedo visualizar el logo, ya intenté con jpg y gif 
> pero no resulta.*
>
> *Mi problema es que se visualiza de esta manera:*
>
>
>
> El logo aparece como una imagen rota.
>
> Saludos y gracias
>
> Cleiver Yam
>
>
>
>
>
>
> _______________________________________________
> R-help-es mailing list
> R-help-es using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es

-- 
Ps. Félix Pérez Villoria
Neuropsicólogo Clínico
Mag. en Neuropsicología
Centro Kumon & Ayudantía Pedagógica
https://www.neurops.cl
General Ordóñez 30, oficina 11B
Maipú, Santiago, Chile
Móvil: +56 9 9672 2896 | +56 9 6213 2492
Oficina: +56 2 2893 4345

------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <https://stat.ethz.ch/pipermail/r-help-es/attachments/20250528/11e68601/attachment-0001.html>

------------ próxima parte ------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 21284 bytes
Desc: no disponible
URL: <https://stat.ethz.ch/pipermail/r-help-es/attachments/20250528/11e68601/attachment-0002.png>

------------ próxima parte ------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 12678 bytes
Desc: no disponible
URL: <https://stat.ethz.ch/pipermail/r-help-es/attachments/20250528/11e68601/attachment-0003.png>


Más información sobre la lista de distribución R-help-es