I have been running shiny app which produces the output files to the default /tmp directory. Due to the small disk size of '/tmp' directory i wanted to change to a different location '/mnt/tmp'. To achieve this i have added the below variables to Rprofile and Renviron files:
Now, i have tested by opening R in the terminal which worked as expected.
> tempdir() "/mnt/tmp/RtmpbQMrhQ"
However, the problem is with shiny app, the application could not be launched with the below error:
==> /var/log/shiny-server/webgqt-shiny-20190628-074640-33053.log <==Fatal error: cannot create 'R_TempDir'
Below are the access rights for the /mnt/tmp:
drwxrwxrwx 2 shiny shiny 4.0K Jun 28 07:47 tmp
Could someone help, what has been wrong here.
I have also posted it here: