<HTML>
<HEAD>
<TITLE>Re: [kepler-users] Question about R workflow in Mac OS X</TITLE>
</HEAD>
<BODY>
<FONT FACE="Trebuchet MS, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:14.0px'>Dan,<BR>
<BR>
Thanks. I am using R 2.3.1 RC.<BR>
<BR>
I tried the workflow you sent..but it didn’t work either. Attached is the error message I got..I downloaded the new ImageJ and replaced the ij.jar in /Applications/kepler-1.0.0beta1/lib/jar, restarted Kepler and tried to run the workflow, but still no success..<BR>
<BR>
<IMG src="cid:3233312830_149859922" ><BR>
Thanks,<BR>
<BR>
Jorge<BR>
<BR>
On 6/16/06 1:58 PM, "Dan Higgins" <higgins@nceas.ucsb.edu> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Trebuchet MS, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:14.0px'>Hello Jorge, <BR>
<BR>
Sorry that you are having a problem with Kepler, (but thanks for <BR>
reporting the problem). I thought that having X11 open and setting the <BR>
DISPLAY problem avoided this problem for Mac PPC machines. It seems to <BR>
work on machines in use here, but obviously not for you. [Incidently, <BR>
interfacing with X11 is a known problem for the new Mac Intel machines, <BR>
although we are not sure why.] I'll have to dig into this to see if I <BR>
can find the problem. What version of R is installed on you Mac? [Kepler <BR>
launches R the same way as you would by entering 'R' on the command line.] <BR>
<BR>
The problem is related to the fact that R on the Mac uses some X11 <BR>
code for the jpeg display device, and I picked that device for the <BR>
Kepler RExpression actor because we could display jpegs easily in Kepler <BR>
on Windows, Mac, and Linux. A better display device for the Mac would be <BR>
a PDF device (since that is handled natively), and I have been looking <BR>
at changing the default behavior in Kepler. [Note that RExpression <BR>
actors work on the Mac if you disable the 'Graphics Output' parameter <BR>
and just look at text output] <BR>
<BR>
Attached is an example Kepler workflow showing how to use a 'pdf' <BR>
command within an R script to override the default setup and display the <BR>
pdf file using an IJMacro actor. Note that this workflow will not <BR>
execute with the Kepler beta1 release until you replace the ij.jar in <BR>
the $KEPLER/lib/jar/ directory with an updated version of this ImageJ <BR>
jar (see <a href="http://rsb.info.nih.gov/ij/download.html">http://rsb.info.nih.gov/ij/download.html</a> and get the 1.36 version). <BR>
<BR>
Dan Higgins <BR>
<BR>
<BR>
<BR>
<BR>
Jorge A. Ahumada wrote: <BR>
> Hello, <BR>
> <BR>
> I am interested in using Kepler for creating workflows with R. I have a MAC <BR>
> 10.4.6 PPC Dual G5 and downloaded the beta 6.1 of Kepler. When attempting to <BR>
> run the linear regression workflow I get this error: <BR>
> <BR>
> [R]> setwd('/Users/jorge') <BR>
> [R]> jpeg(filename = '1150472825782.jpg',width = 480, height = 480, <BR>
> pointsize = 12,quality = 75, bg = 'white') <BR>
> <BR>
> Erro en X11(paste(\"jpeg::\", quality, \":\", filename, sep = \"\"), width, <BR>
> : <BR>
> no fue posible iniciar el dispositivo JPEG <BR>
> Adem·s: Warning message: <BR>
> no fue posible abrir la conecciÛn con el dispositivo X11 '' <BR>
> EjecuciÛn interrumpida <BR>
> <BR>
> X11 is open and I typed setenv DISPLAY localhost:0.0 <BR>
> <BR>
> Seems that the X11 command has the wrong syntax for Mac or Linux: <BR>
> X11(paste(/"jpeg::/". Etc..) <BR>
> <BR>
> How do I change it? Is this the problem..Any ideas? <BR>
> <BR>
> Thanks, <BR>
> <BR>
> Jorge <BR>
> <BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Trebuchet MS, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:14.0px'><BR>
<BR>
</SPAN></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:13.0px'>-- <BR>
Jorge A. Ahumada, Ph.D.<BR>
Technical Director, TEAM<BR>
Center for Applied Biodiversity Science<BR>
Conservation International<BR>
1919 M Street, NW Suite 600<BR>
Washington, DC 20036-3521<BR>
Ph: 202-912-1516<BR>
<BR>
j.ahumada@conservation.org<BR>
<a href="http://www.teaminitiative.org/">http://www.teaminitiative.org/</a><BR>
<BR>
</SPAN></FONT><FONT FACE="Trebuchet MS, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:14.0px'><BR>
</SPAN></FONT>
</BODY>
</HTML>