# Absolute path for logo and external R files

**URL:** <https://support.openanalytics.eu/t/absolute-path-for-logo-and-external-r-files/2417>\
**Category:** ShinyProxy\
**Created:** [December 8, 2022, 6:23am UTC](https://support.openanalytics.eu/t/absolute-path-for-logo-and-external-r-files/2417 "2022-12-08T06:23:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![awwoj](https://support.openanalytics.eu/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@awwoj](https://support.openanalytics.eu/u/awwoj)\
**Post date:** [December 8, 2022, 6:23am UTC](https://support.openanalytics.eu/t/absolute-path-for-logo-and-external-r-files/2417/1 "2022-12-08T06:23:28Z")

</div>

Hi All,  
I have a question about file path which is used for Shinyproxy logo, thumbnails and separate scripts, since all my attempts failed. I put all my images for logo and thumbnail to my www folder, so my application.yml for logo or thumbnails url looks like this file:///root/my\_app/www/pic.png, but this doesn’t work.  
Similar question about absolute path used in R scripts, I have a couple of separate functions (R files) in external folder and my ui.R calls them as source(file = “file:///root/my\_app/functions/my\_f1.R”), but it doesn’t work. Do I miss a part of the path?  
Thanks for your inputs.

---

<div class="post-metadata">

**Author:** ![mnazarov](https://support.openanalytics.eu/user_avatar/support.openanalytics.eu/mnazarov/32/216_2.png) [@mnazarov](https://support.openanalytics.eu/u/mnazarov)\
**Post date:** [December 9, 2022, 11:32am UTC](https://support.openanalytics.eu/t/absolute-path-for-logo-and-external-r-files/2417/2 "2022-12-09T11:32:43Z")

</div>

1. Note that logo path should be path on the host server, not inside the container
2. In R scripts, adding `file://` is not necessary, though should work anyway. So maybe you paths are not correct - make sure that all needed files are added to the docker image.  
Additionally, the error message you get might be helpful to identify the reason.

---

<div class="post-metadata">

**Author:** ![awwoj](https://support.openanalytics.eu/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@awwoj](https://support.openanalytics.eu/u/awwoj)\
**Post date:** [December 9, 2022, 1:31pm UTC](https://support.openanalytics.eu/t/absolute-path-for-logo-and-external-r-files/2417/3 "2022-12-09T13:31:53Z")

</div>

Thank you for your answer.  
Reg 1, I provided absolute path to my host server (the same where shinyproxy-2.6.1.jar is located), file://local/home/my\_username/img/my\_pic.png but I don’t see the pic (for webhosting everything works).

---

<div class="post-metadata">

**Author:** ![dingo](https://support.openanalytics.eu/user_avatar/support.openanalytics.eu/dingo/32/332_2.png) [@dingo](https://support.openanalytics.eu/u/dingo)\
**Post date:** [December 12, 2022, 7:12am UTC](https://support.openanalytics.eu/t/absolute-path-for-logo-and-external-r-files/2417/4 "2022-12-12T07:12:48Z")

</div>

For logo try this format:

```
proxy:
  logo-url: file:///etc/shinyproxy/logo.png

```

and pay attention on file access rights for user shinyproxy.

---

<div class="post-metadata">

**Author:** ![awwoj](https://support.openanalytics.eu/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@awwoj](https://support.openanalytics.eu/u/awwoj)\
**Post date:** [December 12, 2022, 8:42am UTC](https://support.openanalytics.eu/t/absolute-path-for-logo-and-external-r-files/2417/5 "2022-12-12T08:42:30Z")

</div>

Thanks,  
yes I followed the recommendation and still nothing happens. I did a chmod 777 for all the files but still getting an error: Failed to convert file URI to data URI: file:///root/my\_app/www/pic1.png

---

<div class="post-metadata">

**Author:** ![Martins\_Liberts](https://support.openanalytics.eu/user_avatar/support.openanalytics.eu/martins_liberts/32/752_2.png) [@Martins\_Liberts](https://support.openanalytics.eu/u/Martins_Liberts)\
**Post date:** [December 15, 2022, 7:35am UTC](https://support.openanalytics.eu/t/absolute-path-for-logo-and-external-r-files/2417/6 "2022-12-15T07:35:54Z")

</div>

Hello @awwoj  
Are you sure the folder `/root/my_app` is on your host? I presume it contains your application files. So it should be in a container not on your host.  
Anyway `logo-url: file:///etc/shinyproxy/logo.png` works for me as `/etc/shinyproxy` is on my host.

---

<div class="post-metadata">

**Author:** ![awwoj](https://support.openanalytics.eu/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@awwoj](https://support.openanalytics.eu/u/awwoj)\
**Post date:** [December 16, 2022, 12:50pm UTC](https://support.openanalytics.eu/t/absolute-path-for-logo-and-external-r-files/2417/7 "2022-12-16T12:50:11Z")

</div>

thank you All, I overlooked one dash, as you pointed out this is correct and works file:///etc/shinyproxy/logo.png
