Rstudio does not respect environment variables initiated during login shell

Hello,

We are using jupyter-rsession-proxy in order to initiate a Rstudio session within JupyterLab. This works just fine, however it does not respect the environment variables that are created during the spawning of a single-user jupyterhub instance. Note: we create these variables by initiating a login shell with a custom script called by c.Spawner.cmd.

We know these variables exist and are able to dereference them in the .Renviron file. This works fine for R console within JupyterLab, but not for Rstudio.

Any ideas for how to get Rstudio to respect the environment variables that live within the JupyterLab instance?