title: R Flexdashboard: Calling uploaded data via fileInput from other components
body: <p>I have more experience with Shiny and Shiny dashboards so maybe that's why I'm having trouble with this. I can approximate a MWE with the below hypothetical:</p>
  
  <p>Say I want to replicate the <a href="https://beta.rstudioconnect.com/jjallaire/htmlwidgets-ggplotly-geoms/htmlwidgets-ggplotly-geoms.html" rel="nofollow noreferrer">ggplotly example</a> but I want to combine it with <a href="https://shiny.rstudio.com/articles/upload.html" rel="nofollow noreferrer">file upload</a> functionality with Shiny. Meaning, I will have nine flexdashboard components (one for data upload, 4+4 for the ggplotly figures). If I set up the file upload in component#1, I seem to be able to call it reactively e.g. (from the file upload example above)</p>
  
  <pre><code>server &lt;- function(input, output) {
  
  output$contents &lt;- renderTable({
  
  req(input$file1)
  
  df &lt;- read.csv(input$file1$datapath,
           header = input$header,
           sep = input$sep,
           quote = input$quote)
  
  return(head(df))
  
  })
  
  }
  </code></pre>
  
  <p>This works within its own component/code chunk in RMarkdown; once a user uploads a .csv file, it displays the first five rows.</p>
  
  <p>However, I'm failing to call the uploaded data from any other component, as it is embedded as a Shiny module in its own component. I tried assigning the uploaded data to an object and then calling it reactively (e.g. <code>selectedData()</code>) but that greys out the component. Also tried setting an <code>observeEvent</code> to no avail. I feel I must be missing something obvious. In the ggplotly example, the data is saved in the global chunk - that would serve my needs, but seems like it only works in you are getting the data from a package/library.</p>
  
  <p>tl;dr What's the best way of calling user-uploaded data from other flexdashboard components?</p>