title: How can be created an independent directory for each user in Shiny app?
body: <p>I'm building a shiny app that create multiple files depending on the uploade file by the user. The created files has the same names and this can make that when a user download the files end with a none relative information to his data.</p>
  <p><strong>How can be created an independent directory for each user in Shiny app?</strong></p>
  <p>I have found the next solution so far to create the directory to store the files:</p>
  <pre class="lang-r prettyprint-override"><code>directory &lt;- paste0(format(Sys.time(),&quot;%Y%m%d%H%M%S&quot;),rnorm(1),
                      rnorm(1))
  dir.create(directory)
  setwd(directory)
  </code></pre>
  <p>But I have read that this may not work if I upload the app to a server. <strong>How should I do it?</strong></p>