R - Error: IllegalArgumentException (Java): Your InputStream was neither an OLE2 stream, nor an OOXML stream
<p>I use <code>R XLConnect</code> package.
When I wrote '<code>XLConnect</code>' function, such as <code>loadWorkbook()</code>, <code>readWorksheetFromFile()</code> etc. , this error message happen.</p>

<blockquote>
  <p>Error: IllegalArgumentException (Java): Your InputStream was neither
  an OLE2 stream, nor an OOXML stream</p>
</blockquote>

<p>How to solve this problem?</p>

<p>Before using this function, I took action against crashing between R and Mac OS X by the way <a href="http://www.r-bloggers.com/getting-r-and-java-1-8-to-work-together-on-osx/" rel="nofollow">http://www.r-bloggers.com/getting-r-and-java-1-8-to-work-together-on-osx/</a> link told.</p>

<p>I have used Mac OS X.</p>