title: Reading in a file in R Shiny
body: <p>So I am building an app in R shiny that requires the user to upload a .csv file. Once read in by R shiny, I am unsure how to actually manipulate that object to use. The general code syntax is the following:</p>
  
  <p>The UI file:</p>
  
  <pre><code>#ui.R
  # Define UI for random distribution application 
  shinyUI(fluidPage(
  
    # Application title
    titlePanel("ORR Simulator"),
  
    # Sidebar with controls to select the random distribution type
    # and number of observations to generate. Note the use of the
    # br() element to introduce extra vertical spacing
    sidebarLayout(
      sidebarPanel(
            fileInput('file1', 'Select the XXX.csv file',
                  accept=c('text/csv','text/comma-separated-values,text/plain','.csv')),
        tags$hr(),
            fileInput('file2', 'Select the YYY.csv file',
                  accept=c('text/csv','text/comma-separated-values,text/plain','.csv')),
        tags$hr(),
       numericInput("S", "Number of simulations to run:", 100),
  
         mainPanel(
  plotOutput("plot")
      )
    )
  ))
  </code></pre>
  
  <p>The server file:</p>
  
  <pre><code>#server.R
  library(shiny)
  
  shinyServer(function(input, output) {
  
  text1 &lt;- renderText({input$file1})
  text2 &lt;- renderText({input$file2})
  
  file1 = read.csv(text1)
  file2 = read.csv(text2)
  
  output$plot &lt;- renderPlot({
  
  plot(file1[,1],file2[,2])
  
  })
  
  
  })
  </code></pre>
  
  <p>And so I would have expected text1 and text2 to hold strings containing the file path to where the files are but that does not seem to be the case. Ultimatley I just want to be able to read in two data sets and from there be able to do analysis to output based on those two data sets.</p>
  
  <p>Of course using renderText might be the wrong idea as well so any suggestions on how to do this better is greatly appreciated. </p>