On Dec 20, 2010, at 3:20 PM, Li, Man wrote: > Dear list, > > I just installed R-2.12.1 this afternoon on my mac (OS X 10.5.8). When I was > trying to open jpeg() in R, I got this error message below. > >> jpeg() > Error in jpeg() : X11 module cannot be loaded > In addition: Warning message: > In jpeg() : > unable to load shared object > '/Library/Frameworks/R.framework/Resources/modules/x86_64/R_X11.so': > dlopen(/Library/Frameworks/R.framework/Resources/modules/x86_64/R_X11.so, > 6): Library not loaded: /usr/X11/lib/libfontconfig.1.dylib > Referenced from: > /Library/Frameworks/R.framework/Resources/modules/x86_64/R_X11.so > Reason: Incompatible library version: R_X11.so requires version 5.0.0 or > later, but libfontconfig.1.dylib provides version 3.0.0 >
Apparently your X11 is out of date - try installing all security upgrades from Apple (see Software Update). That said, on Mac you are usually better off using Quartz - e.g. quartz(.., type="jpeg") instead of jpeg(), png() etc.. Cheers, Simon > There is no problem with png() and pdf(). > > Please advise! > > Thanks a lot. > > ---------------------------- > Man Li > Research Analyst > Dept of Epidemiology > Johns Hopkins Bloomberg School of Public Health > > [[alternative HTML version deleted]] > > _______________________________________________ > R-SIG-Mac mailing list > [email protected] > https://stat.ethz.ch/mailman/listinfo/r-sig-mac > > _______________________________________________ R-SIG-Mac mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-mac
