title: r function unzip error 1 in extracting from zip file
body: <p>Environment:
  Windows 7 OS
  RStudio Version 0.99.491</p>
  
  <p>I have been programming in R for about 4 months via the Coursera Data Science curriculum, but I have NEVER been successful in using the unzip function.</p>
  
  <p>I've looked at the forums for hours for potential solutions, syntax problems, undefined arguments, etc., but to no avail.  I eventually unzip the contents manually and proceed with the assignment, but I am tired of not knowing why it is not working.</p>
  
  <p>Here are a few examples of the error:</p>
  
  <p><code>fileName &lt;- "StormData.zip"</code></p>
  
  <p><code>unzip(fileName, exdir = mainDir,subDir)</code></p>
  
  <blockquote>
    <p>Warning message: In unzip(fileName, exdir = mainDir, subDir) :   error
    1 in extracting from zip file</p>
  </blockquote>
  
  <p><code>unzip(fileName)</code></p>
  
  <blockquote>
    <p>Warning message: In unzip(fileName) : error 1 in extracting from zip
    file</p>
  </blockquote>
  
  <p><code>unzip(fileName, "stormdata.csv")</code> </p>
  
  <blockquote>
    <p>Warning message: In unzip(fileName, "stormdata.csv") : error 1 in
    extracting from zip file</p>
  </blockquote>
  
  <p><code>unzip(fileName, "stormdata.csv", list = TRUE)</code></p>
  
  <blockquote>
    <p>Error in unzip(fileName, "stormdata.csv", list = TRUE) :    zip file
    'StormData.zip' cannot be opened</p>
  </blockquote>
  
  <p>Any suggestions would be greatly appreciated.  </p>