Re: [Rd] JPEG struct mismatch on Intel Macs (PR#9209)

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Wed 06 Sep 2006 - 16:34:05 GMT

spector@stat.berkeley.edu writes:

> Full_Name: Phil Spector
> Version: 2.3.1
> OS: Mac OS X (Tiger)
> Submission from: (NULL) (128.32.135.22)
>
>
> Trying to close a jpeg() device on an Intel Mac causes the following:
>
> > jpeg('out.jpg')
> > plot(1:10)
> > dev.off()
> JPEG parameter struct mismatch: library thinks size is 372, caller expects 376
> null device
> 1
> >
>
>
> An empty jpg file is produced in 'out.jpg'
   

AFAICT, this wouldn't be a bug in R. Your version of R appears to have been built with one version of the jpeg libraries and you have another version installed. Unless we have a compiler issue and one part is padding out to a multiple of 8 bytes.

-- 
   O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Thu Sep 07 02:38:10 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 06 Sep 2006 - 17:40:59 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.