title: Pass a filepath from shinyFiles::shinyFileChoose to another function
body: <p><strong>RELATED</strong>: <a href="https://stackoverflow.com/questions/47719285/display-selected-folder-path-in-shiny">Display selected folder path in Shiny</a></p>
  
  <p>I cannot receive the file path from <code>shinyFileChoose</code> to use it in another function in anyway. I have tried the following approach according to the manual and the related thread mentioned above, but I still get nothing...</p>
  
  <p>I simply want the absolute file path to the file user chooses so that I can use it in my program later on (in several different functions).</p>
  
  <pre><code>ui &lt;- fluidPage(
  
     titlePanel("File Browser"),
  
     sidebarLayout(
        sidebarPanel(
  
          shinyFilesButton('files', label = 'Select', title = 'Please select a 
                            file', multiple = FALSE),
          verbatimTextOutput("filechosen")
        ),
  
        mainPanel(
        )
     )
  )
  
  
  server &lt;- function(input, output) {
  
     shinyFileChoose(input, 'files', root = c(root = '/home/guest/test_data'),          
     filetypes = c('', "xml", "txt"))
  
     file &lt;- reactive(input$files)
     output$filechosen &lt;- renderText({
       parseFilePaths(c(home = "/home/guest/test_data"), file())
     })
  
  }   
  shinyApp(ui = ui, server = server)
  </code></pre>
  
  <blockquote>
    <p>Error: argument 1 (type 'list') cannot be handled by 'cat'</p>
  </blockquote>