Passing environment variable to an app in shiny server

Currently I use this

env | grep R_CONFIG_ACTIVE > /home/shiny/.Renviron
chown shiny.shiny /home/shiny/.Renviron

to pass the env variable to the shiny user that runs the app.

it is working but I wonder if there is another way to do it.

3 Likes