Re: [R] spss-file problem with foreign 0.8-32

2009-02-17 Thread Prof Brian Ripley
It is a issue specific to 0.8-32 and some files (most likely those with some (not all) Windows codepages declared). We are trying to collect together some examples, and will update foreign accordingly later in the week. On Tue, 17 Feb 2009, Harry Haupt wrote: Hi, after updating to foreign

Re: [R] spss-file problem with foreign 0.8-32

2009-02-17 Thread Harry Haupt
Peter Dalgaard wrote: > > Yes, something in the logic appears to have gotten garbled. > > It's in this part of read,spss: > > if (is.character(reencode)) { > cp <- reencode > reencode <- TRUE > } > else if (codepage <= 500 || codepage >= 2000) { > attr(rval,

Re: [R] spss-file problem with foreign 0.8-32

2009-02-17 Thread Peter Dalgaard
Harry Haupt wrote: > Hi, > after updating to foreign version 0.8-32, I experienced the following error > when I tried to load a SPSS file: > > Fehler in inherits(x, "factor") : objekt "cp" nicht gefunden > Zusätzlich: Warning message: > In read.spss("***l.sav", use.value.labels = TRUE, to.data.fra

[R] spss-file problem with foreign 0.8-32

2009-02-17 Thread Harry Haupt
Hi, after updating to foreign version 0.8-32, I experienced the following error when I tried to load a SPSS file: Fehler in inherits(x, "factor") : objekt "cp" nicht gefunden Zusätzlich: Warning message: In read.spss("***l.sav", use.value.labels = TRUE, to.data.frame = TRUE) : ***.sav: File-ind