title: R Data file not converting to Stata file
body: <p>I am getting this error. Cannot figure out why? Any advise?</p>
  
  <pre><code>library(foreign)
  x &lt;- data.frame(a = "", b = 1, stringsAsFactors = FALSE)
  write.dta(x, 'x.dta')
  Error in write.dta(x, "x.dta") : 
   4 arguments passed to .Internal(nchar) which requires 3
  </code></pre>