Re: [R] read.dta error

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Tue, 27 May 2008 07:31:32 +0100 (BST)

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

______________________________________________
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.
Received on Tue 27 May 2008 - 06:48:26 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 29 May 2008 - 12:30:40 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive