title: zip files with R
body: <p>I am combining Tableau Software and Rstudio Tools.
  I have a Template(Dashboard) where I inject different value of DATA after Rcode processing.</p>
  
  <p>I want to reproduce a workbook (.twbx)
  to do that manually I compress (Data + Dashboard.twb) with 7-zip with .twbx extension </p>
  
  <p>But when I try to do the same thing with R, <code>zip</code>  function point out an Error </p>
  
  <pre><code>d&lt;- "~/Myriam/Projets/Data/Dashboard_Template"
  files &lt;- list.files(d, recursive=TRUE)
  zip("myarchive.zip", files=paste(d, files, sep="/")) 
  </code></pre>
  
  <blockquote>
    <p><strong>Warning message:</strong>
    running command '"zip" -r9X "myarchive.zip" "~/Myriam/Projets/Data/Dashboard_Template/Dashboard_Template.twb" "~/Myriam/Projets/Data/Dashboard_Template/Data/Data/Categorie.txt" "~/Myriam/Projets/Data/Dashboard_Template/Data/Data/db_histo_fake_table_subset.txt" ' <strong>had status 127</strong></p>
  </blockquote>
  
  <pre><code>Sys.getenv('R_ZIPCMD')
  # [1] ""
  </code></pre>
  
  <p>The Code that I used</p>
  
  <p><code>d&lt;- "~/Myriam/Projets/Data/Dashboard_Template" 
  files &lt;- list.files(d, recursive=TRUE) 
  zip("myarchive.zip", files=paste(d, files, sep="/"))</code></p>
  
  <p>Sys.getenv('R_ZIPCMD') returns ""</p>
  
  <pre><code>   Sys.getenv('R_ZIPCMD') 
     [1] ""
  </code></pre>
  
  <p>I dont have this problem with <code>tar()</code> function even if it is in the same Library utils and <code>Sys.getenv('tar')</code> returns ""</p>
  
  <p>Thank you </p>