title: Import csv's and write them with shiny dashboard
body: <p>So I'm writing a shiny program that reads 3 .csv files and then has tabs that display different variations/pivots of the data.  The data is updated daily, and I wanted to have a tab on the shiny dashboard where the user could go and upload the new 3 .csv files. </p>
  
  <p>ToyCode below:</p>
  
  <pre><code>    csv1=read.csv("csv1.csv")
      csv2=read.csv("csv2.csv")
      csv3=read.csv("csv3.csv")
      csvother=read.csv("somestatic.csv")
  
      # Create an header
      header = dashboardHeader(#header Stuff)
  
      # Create an sidebar
      sidebar = dashboardSidebar(
        sidebarMenu(.....4 sidebar menus....))
  
      # Create an body
      body &lt;- dashboardBody(
  
        fluidPage(
        tabItems(
          tabItem(*****other tabs**** then:
           tabItem(tabName="Thing4",
  
                fileInput("newcsv1", "Choose new CSV1",
                            multiple = FALSE,
                            accept = c(".csv")), 
  
          )#End tabItems )#end Fluidpage   )#end Dashboard Body 
  ui=dashboardPage(header,sidebar,body)   
  </code></pre>
  
  <p>Then the server code</p>
  
  <pre><code>    server=function(input, output) {
      output$csv1=renderDT({ #pivot stuff, output table{)
      output$csv2=renderDT({ #pivot stuff, output table{)
      output$csv3=renderDT({ #pivot stuff, output table{)
  } 
  </code></pre>
  
  <p>So from here, how do I set it up so when the user goes to the 4th tab, and selects the file to import, where do I put the function to process the code...i.e. write the csv then set csv1 equal to the new csv1 file?</p>