[R-SIG-Mac] Another error

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Apr 9 07:08:55 CEST 2008


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