title: R.matlab/readMat : Error in readTag(this)
body: <p>I am trying to read a matlab file into R using R.matlab but am encountering this error:</p>
  
  <pre><code>require(R.matlab)
  r &lt;- readMat("file.mat", verbose=T)
  
  Trying to read MAT v5 file stream...
  Error in readTag(this) : Unknown data type. Not in range [1,19]: 18569
  In addition: Warning message:
  In readMat5Header(this, firstFourBytes = firstFourBytes) :
    Unknown MAT version tag: 512. Will assume version 5.
  </code></pre>
  
  <p>How can this issue be solved or is there an alternative way to load matlab files? I can use hdf5load but have heard this can mess with the data. Thanks!</p>