Unfortunately not.
I've setup a shiny application that verbatimText displays:
- Sys.getenv("LD_LIBRARY_PATH")
- Sys.getenv("TEST_VARIABLE")
- Sys.getenv("USER")
And setup shiny server to run as a specific user through the configuration. Under that user's home directory, .bash_profile (which should be hit first) has an export statement that sets LD_LIBRARY_PATH and TEST_VARIABLE. Running ./shiny-server and checking the application, it seems that TEST_VARIABLE and USER are blank, while LD_LIBRARY_PATH seems to be getting set in /R-3.2.2/lib64/R/etc/ldpaths.
Running the same application using runApp in a separate R Session has all these environment sessions set correctly.
Running R 3.2.2, Shiny Server 1.4, shiny 0.13.0.