title: Read Stata 13 file in R
body: <p>Is there a way to read a Stata version 13 dataset file in R?</p>
  
  <p>I have tried to do the following:</p>
  
  <pre><code>&gt; library(foreign)
  &gt; data = read.dta("TEAdataSTATA.dta") 
  </code></pre>
  
  <p>However, I got an error:</p>
  
  <blockquote>
    <p>Error in read.dta("TEAdataSTATA.dta") :<br>
    not a Stata version 5-12 .dta file</p>
  </blockquote>
  
  <p>Could someone point out if there is a way to fix this?</p>