Re: [R] read.dta error

From: Aleksandr Andreev <aleksandr.andreev_at_duke.edu>
Date: Tue, 27 May 2008 10:02:41 -0600

I'm running on Ubuntu Hardy kernel 2.6.24-17-generic R version 2.6.2 (2008-02-08)

I've actually already imported using Stat/Transfer. But if anyone would like to explore this issue, I'll be happy to send them the STATA file.

A

2008/5/27 Prof Brian Ripley <ripley_at_stats.ox.ac.uk>:
> 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 - 17:53:28 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 Tue 27 May 2008 - 18:30:46 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