[R-SIG-Mac] Building R with png and jpeg support

Simon Urbanek simon.urbanek at r-project.org
Thu Sep 29 22:55:05 CEST 2005


On Sep 29, 2005, at 4:16 PM, Craig Amundsen wrote:

>> Compare the environment you have in terminal.app with what you  
>> have in
>> an X11 xterm.  You can use the env command, for example.  There  
>> may be
>> other pieces, but I think you need /usr/X11R6/bin in your PATH.
>>
>
> Thanks for the idea.
>
> The terminal.app environment does lack /usr/X11R6/bin in its path.  
> I tried adding it, but doing so had no effect on the status of jpeg  
> and png for R.

That wasn't the point - it's highly likely that your DISPLAY is not  
set - start your X11 and try
Sys.putenv(DISPLAY=":0.0")
before running capabilities()

FWIW, since you are building a cgi app, you may consider the GDD  
package which allows you to create png, jpeg, gif etc. plots without  
the need of X11.

Cheers,
Simon



More information about the R-SIG-Mac mailing list