title: Access shiny environment from exported functions
body: <p>It seems exported functions in the R/ directory in an R package don't have access to variables, data.frames, etc. defined in the environment created by shinyServer. I could assign the variables, data.frames, etc. to the global environment but would like to avoid that. </p>
  
  <p>shinyServer also generates a new/random name for the environment it uses. A key list/reactiveValues in my app is called <code>values</code> so a work-around I stumbled on is to use <code>env_shiny &lt;&lt;- pryr::where("values")</code> to determine where <code>values</code> lives.</p>
  
  <p>In the exported functions from the R/ directory I can then <code>get("values", envir = env_shiny)[[dataset]]</code> to access the data I need.</p>
  
  <p>I am wondering if there is a simpler/cleaner way to do this. </p>