[R] read.dta error

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue May 27 08:31:32 CEST 2008


You haven't followed the posting guide -- no OS, version of R, version of 
foreign.  (This is fairly clearly Linux, but we need the architecture as 
such errors are often confined to one architecture.)

But most importantly, no reproducible example.

This probably indicates an infelicity in the do_readStata code, but 
without a reproducible example we will be unable to fix it.  (It might be 
an error in the foreign package, but it would not be the first time that 
it was an error in the description of the Stata format.)

On Mon, 26 May 2008, Aleksandr Andreev wrote:

> Greetings!
>
> I attempted to read a STATA 10 file using the following syntax:
>
> library(foreign)
> data <- read.dta("~/Documents/agestandard/analysis.dta")
>
> I got the following error:
>
> *** stack smashing detected ***: /usr/lib/R/bin/exec/R terminated
> ======= Backtrace: =========
> /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7c13138]
> /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x0)[0xb7c130f0]
> /usr/local/lib/R/site-library/foreign/libs/foreign.so[0xb759c164]
> /usr/local/lib/R/site-library/foreign/libs/foreign.so(do_readStata+0x0)[0xb759c060]
> [0x0]

...

> Does anyone have any ideas?
>
> Aleks
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list