title: Choose folder or folder directory inside shiny app
body: <p>I have a problem using shiny. I want to choose the folder where all the files I want to use in my app are saved either 1) by setting the working directory to that folderpath or 2) by uploading all csv data inside this folder to my app for further processing. for 1) I found the shinyFiles package but it is very very slow -not due to my PC- as well as giving me the error:</p>
  
  <pre><code>Warning: Error in dir.create: invalid 'path' argument
  Stack trace (innermost first):
      59: dir.create
      58: dirCreate
      57: observerFunc
       2: runApp
       1: shinyFilesExample
  </code></pre>
  
  <p>when I selected a folder and the create folder button becomes clickable and I am putting a name of the new folder into it and clicking on the "+" beneath that panel. Anybody knows why? Despite that this method works but is very very slow. code below:</p>
  
  <pre><code>library(shiny)
  library(shinyFiles)
  
  ui&lt;-fluidPage(sidebarLayout(
  
    sidebarPanel(
      shinyDirButton("dir", "Chose directory", "Upload")
    ),
  
    mainPanel(
      h4("output$dir"),
      verbatimTextOutput("dir"), br()
  
    )
  
  ))
  
  
  server &lt;- function(input,output,session){
  
    # dir
    shinyDirChoose(input, 'dir', roots = getVolumes())
    dir &lt;- reactive(input$dir)
    output$dir &lt;- renderPrint(dir())
  
  
  
  
  }
  shinyApp(ui = ui, server = server)
  </code></pre>
  
  <p>Is there another option? Maybe to upload all csv data via the <code>fileInput</code> function? Or another way? It should not work only locally but on a server so <code>choose.dir</code> might be not the right way.
  Many thanks</p>