[Rd] read.spss, R 1.3.0, win2k
Prof Brian D Ripley
ripley@stats.ox.ac.uk
Tue, 17 Jul 2001 13:54:05 +0100 (GMT Daylight Time)
I've found the problem. The read.spss code was free-ing not Free-ing
memory allocated by Calloc. On most platforms that would work, but not on
Windows where Calloc/Free and calloc/free use separate memory managers.
This explains the randomness of the problems.
I'm solving this (and a few other things) in 0.4-6.
I will put up a pre-compiled version, so update.packages() should fetch it
tomorrow.
On Mon, 9 Jul 2001, Uwe Ligges wrote:
> Thomas Lumley wrote:
> >
> > read.spss() is giving "Rgui.exe has generated errors and will be
> > closed..." on all the files I have tried (the same happens with Rterm as
> > well). This is R1.3.0 and the current `foreign',under Win2k.
> >
> > The problem doesn't happen under Linux on a different machine and
> > didn't happen with an earlier version of R and foreign under NT4 on a
> > different machine.
> >
> > As I updated to a new computer, new OS and new version of R at the same
> > time I don't know which component is responsible. Has anyone used
> > read.spss() with R 1.3.0 under Windows?
>
>
> [R-1.3.0, foreign_0.4-4, WinNT 4.0]
>
> A generated test file in SPSS 10, containing a "matrix(c(2,3,3,5),
> ncol=2)", can be read in:
>
> read.spss("c:/test.sav")
>
> $VAR00001
> [1] 2 3
>
> $VAR00002
> [1] 3 5
>
>
>
> But trying to read a non existant file crashes R on my machine:
>
> read.spss("c:/nonexistant.abc") # R crashes
This is already solved in 0.4-5.
--
Brian D. Ripley, ripley@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 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._