The main functions in my application are in an R package in the R/ directory. These functions are intended to work both inside and outside of a shiny-app. When calling a function a string is passed with the name of the dataset. Inside shiny that string is used to look-up a dataframe in a reactiveValues object (e.g., r_data).
What is the best way to give functions, that , by default, are in their own package environment, access to reactiveValues etc. when called from a Shiny environment? Is it possible to set the shiny environment as the parent environment for functions in a package somehow?
I discussed this with @smbache a while back (see link below) and got a working solution. Unfortunately, when running the app locally, I have to make the shiny environment accessible in the global environment which is not ideal.