Passing environment variable to an app in shiny server

August 29, 2018 @cderv Christophe Dervieux

@cderv wrote:

Hi,

I am currently trying to use rocker/shiny to deploy an application. I use also the config :package: to ease configuration in deployement. R_CONFIG_ACTIVE env variable is defined in the Docke file but is not found by the shiny app.

It seems that an environment variable cannot be pass easily to a running app. There is an old discussion on that : https://groups.google.com/forum/#!topic/shiny-discuss/nNs0kztwdWo

Is this still the case ? Is there a configuration that could help ?
Is there something that can be done outside of R code ? I mean that config :package: helps configure behavior per environment ouside of the R code. I would have thought to do something like that in my Dockerfile, or at run docker run -e R_CONFIG_ACTIVE= ...

A workaround is to not use rocker/shiny as it seems to be a limitation of shiny server (for security reason)

Posts: 2

Participants: 1

Read full topic

Previous Article
Secure way to accept user input for shiny apps
Secure way to accept user input for shiny apps

@Mathematics wrote: Hello ... I am using R shiny to develop mathematics APPS whe...

Next Video
R, RStudio 1.2 & Python a love story - Sean Lopp
R, RStudio 1.2 & Python a love story - Sean Lopp

We'll discuss R’s history of interoperability and the philosophy of Reticulate, the Reticulate-powered feat...