[R-SIG-Mac] Another error

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Apr 9 17:06:39 CEST 2008


And what is there to look at?  The first warning tells you it looks like a 
Windows codepage -- but it will have attempted to handle it.
'Attempted' because SPSS often sometimes marks incorrectly.

The second warning is about something unknown (to read.spss and to me).

On Wed, 9 Apr 2008, David Kaplan wrote:

> I appreciate the time to look at this.  I checked Foreign and now have used 
> the updated version 8-24.
>
> Here is my sessionInfo()
>
> R version 2.6.1 (2007-11-26)
> i386-apple-darwin8.10.1
>
> locale:
> en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base 
> other attached packages:
> [1] poLCA_1.1            MASS_7.2-38          scatterplot3d_0.3-25 
> foreign_0.8-24 
> loaded via a namespace (and not attached):
> [1] tools_2.6.1
>>
>
>
> Here is my error message.
>
> 1: In read.spss("~/Desktop/math.sav") :
> ~/Desktop/math.sav: File-indicated character representation code (1252) 
> looks like a Windows codepage
> 2: In read.spss("~/Desktop/math.sav") :
> ~/Desktop/math.sav: Unrecognized record type 7, subtype 20 encountered in 
> system file
>
>
> Thanks in advance.
>
> David
>
>
> ===============================================================
> David Kaplan, Ph.D.
> Professor
> Department of Educational Psychology
> University of Wisconsin - Madison
> Educational Sciences, Room, 1061
> 1025 W. Johnson Street
> Madison, WI 53706
>
> email: dkaplan at education dot wisc dot edu
> homepage:
> http://www.education.wisc.edu/edpsych/facstaff/kaplan/kaplan.htm
> Phone: 608-262-0836
> ===============================================================
>
>
>
>
>
> Prof Brian Ripley wrote:
>> Another comment - this does not look like the latest version of foreign 
>> (0.8-24). That handles encodings (warning 3) and does not give warning 4.
>> 
>> I've not seen warning 5 before, but presume that like warning 4 it is 
>> harmless.
>> 
>> Since this is a Mac, all locales are UTF-8 (at least on the console) and 
>> you do want Windows encodings to be handled.  Please update your 'foreign'.
>> 
>> On Tue, 8 Apr 2008, Sean Davis wrote:
>> 
>>> On Tue, Apr 8, 2008 at 4:13 PM, David Kaplan <dkaplan at education.wisc.edu> 
>>> wrote:
>>>> Hi, I loaded 'foreign' to read in a .sav file directly using read.spss.
>>>>  Came up with this message.
>>>>  Any thoughts?
>>>>
>>>>  Thanks in advance.
>>>> 
>>>> 
>>>> 
>>>>
>>>>  Warning messages:
>>>>  1: package 'foreign' was built under R version 2.6.2
>>>>  2: package 'poLCA' was built under R version 2.6.2
>>> 
>>> Hi, David.
>>> 
>>> Might or might not be a problem, but it looks like you are mixing
>>> package versions and R versions.  When writing to the list, you will
>>> always want to include the output of sessionInfo().  In this
>>> particular case, you will want to remove the offending packages and
>>> re-install them.
>>>
>>>>  3: In read.spss("~/Desktop/math1.sav") :
>>>>   ~/Desktop/math1.sav: File-indicated character representation code
>>>>  (1252) looks like a Windows codepage
>>>>  4: In read.spss("~/Desktop/math1.sav") :
>>>>   ~/Desktop/math1.sav: Unrecognized record type 7, subtype 16
>>>>  encountered in system file
>>>>  5: In read.spss("~/Desktop/math1.sav") :
>>>>   ~/Desktop/math1.sav: Unrecognized record type 7, subtype 20
>>>>  encountered in system file
>>> 
>>> I know it is hard to remember to do it, but when you use ANY new
>>> function in R, it is essential to read the help page.  I think the
>>> answer is on the help page.
>>> 
>>> Sean
>>> 
>>> _______________________________________________
>>> R-SIG-Mac mailing list
>>> R-SIG-Mac at stat.math.ethz.ch
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>> 
>> 
>

-- 
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-SIG-Mac mailing list