title: Displaying table output from a source function in shiny
body: <p>I have written an R macro which converts a dataset into a more legible format. It is complete and has been tested on several datasets so I have now decided to write a GUI to implement this code using Shiny.</p>
  
  <p>My UI code seems to be working. </p>
  
  <pre><code>shinyUI(fluidPage(
    titlePanel("DATASET CONVERSION"),
  
    sidebarLayout(
        fileInput("filein", label = h2("Select a file to convert.")),
        submitButton("Submit")
                   ),
      mainPanel(
        tableOutput("Dataset")
        )
    )
  )
  </code></pre>
  
  <p>However the server doesn't seem to be producing any output in the main panel</p>
  
  <pre><code>source("Full Code.R")
  shinyServer(function(input, output) {
  
    input$filein
  
    output$Dataset &lt;- renderTable({ 
      OUTPUT
    })
  })
  </code></pre>
  
  <p>My source code (Full Code.R) has been tested and is fully operational. It requires an inputted dataset called INPUT, and following the code, assigns the converted dataset to the global environment under the name OUTPUT. I cannot reveal the the dataset due to confidentiality reasons, however this is an arbitrary issue in which any dataset could be displayed.</p>
  
  <p>If anybody can spot any mistakes that I've been making, please let me know. </p>