title: Read.dta not working on Mac OS X
body: <p>A project that typically works on my Windows 7 office machine now gives errors on my Mac OS X laptop, trying to run it with R Studio. The part it fails is </p>
  
  <pre><code>library(foreign)
  basis &lt;- read.dta("myfile.dta")
  Error in factor(rval[[v]], levels = tt[[ll[v]]], labels = names(tt[[ll[v]]])) : 
    invalid 'labels'; length 4 should be 1 or 3
  </code></pre>
  
  <p><code>R</code> and <code>Rstudio</code> are on the newest version, I already ran <code>update.packages()</code>. As I'm a beginner on R itself, I'm completely clueless what to try next. </p>
  
  <p>Could this somehow be related with OS X encoding? The stata file has German "umlaut" (that is, non ISO characters) in it. </p>