[R-SIG-Mac] Another error

David Kaplan dkaplan at education.wisc.edu
Wed Apr 9 17:05:14 CEST 2008


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
>>
>



More information about the R-SIG-Mac mailing list