Yes,<br><br>Now it works! interesting..<br>Still no luck with the PDF_DISPLAY workflow though..<br><br>Jorge<br><br><div><span class="gmail_quote">On 6/16/06, <b class="gmail_sendername">Dan Higgins</b> <<a href="mailto:higgins@nceas.ucsb.edu">
higgins@nceas.ucsb.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Jorge,<br><br>    I have some more information on your problem.
<br><br>    When I execute the Kepler-1.0.0beta1 application on a PPC Mac by<br>double clicking 'Kepler-1.0.0beta1', I can reproduce the problem that<br>you reported. However, there is also a script for launching Kepler in
<br>the distribution called 'kepler.sh'. If I open kepler from the terminal<br>using with './kepler.sh' with X11 running and DISPLAY set, then there is<br>no error and the linear regression example works and displays a plot! I
<br>do NOT understand why the behavior should depend on exactly how Kepler<br>is launched! (Perhaps something in how the ENV variables are passed to<br>the app.)<br><br>    In any case, you might want to try launching Kepler from Terminal
<br>with the shell script and see if that works for you.<br><br>Dan<br><br>---<br><br>Dan Higgins wrote:<br>> 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
<br>> machines, although we are not sure why.] I'll have to dig into this to<br>> see if I can find the problem. What version of R is installed on you<br>> Mac? [Kepler launches R the same way as you would by entering 'R' on
<br>> 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
<br>> Kepler on Windows, Mac, and Linux. A better display device for the Mac<br>> would be a PDF device (since that is handled natively), and I have<br>> been looking at changing the default behavior in Kepler. [Note that
<br>> RExpression actors work on the Mac if you disable the 'Graphics<br>> Output' parameter and just look at text output]<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
<br>> the 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<br>> version).<br>><br>> Dan Higgins<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<br>>> a MAC<br>>> 10.4.6 PPC Dual G5 and downloaded the beta 6.1 of Kepler. When<br>>> 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 = \"\"),<br>>> width,<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>><br>
> ------------------------------------------------------------------------<br>><br>> <?xml version="1.0" standalone="no"?><br>> <!DOCTYPE entity PUBLIC "-//UC Berkeley//DTD MoML 1//EN"
<br>>     "<a href="http://ptolemy.eecs.berkeley.edu/xml/dtd/MoML_1.dtd">http://ptolemy.eecs.berkeley.edu/xml/dtd/MoML_1.dtd</a>"><br>> <entity name="PDF_Display_Example" class="ptolemy.actor.TypedCompositeActor
"><br>>     <property name="_createdBy" class="ptolemy.kernel.attributes.VersionAttribute" value="6.0-devel"><br>>     </property><br>>     <property name="SDF Director" class="
ptolemy.domains.sdf.kernel.SDFDirector"><br>>         <property name="iterations" class="ptolemy.data.expr.Parameter" value="1"><br>>         </property><br>>         <property name="timeResolution" class="
ptolemy.moml.SharedParameter" value="1E-10"><br>>         </property><br>>         <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org:director:1:1
"><br>>         </property><br>>         <property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.domains.sdf.kernel.SDFDirector"><br>>             <property name="id" class="
ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:directorclass:1:1"><br>>             </property><br>>         </property><br>>         <property name="semanticType000" class="
org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#Director"><br>>         </property><br>>         <property name="semanticType111" class="org.kepler.sms.SemanticType
" value="urn:lsid:localhost:onto:2:1#Director"><br>>         </property><br>>         <property name="_location" class="ptolemy.kernel.util.Location" value="[70.0, 
45.0]"><br>>         </property><br>>     </property><br>>     <property name="Annotation" class="ptolemy.vergil.kernel.attributes.TextAttribute"><br>>         <property name="text" class="
ptolemy.kernel.util.StringAttribute" value="PDF Display Example using the IJMacro.&#10;&#10;&#10;Dan Higgins - NCEAS&#10;June 7, 2006"><br>>         </property><br>>         <property name="entityId" class="
org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org:actor:436:1"><br>>         </property><br>>         <property name="class" class="ptolemy.kernel.util.StringAttribute
" value="ptolemy.vergil.kernel.attributes.TextAttribute"><br>>             <property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:1199:1
"><br>>             </property><br>>         </property><br>>         <property name="semanticType000" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#DocumentationActor">
<br>>         </property><br>>         <property name="semanticType111" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#WorkflowDocumentation"><br>>         </property>
<br>>         <property name="_location" class="ptolemy.kernel.util.Location" value="[-10.0, 280.0]"><br>>         </property><br>>     </property><br>>     <property name="_windowProperties" class="
ptolemy.actor.gui.WindowPropertiesAttribute" value="{bounds={32, 15, 872, 788}, maximized=false}"><br>>     </property><br>>     <property name="_vergilSize" class="ptolemy.actor.gui.SizeAttribute
" value="[600, 658]"><br>>     </property><br>>     <property name="_vergilZoomFactor" class="ptolemy.data.expr.ExpertParameter" value="1.0"><br>>     </property>
<br>>     <property name="_vergilCenter" class="ptolemy.data.expr.ExpertParameter" value="{225.0590717299578, 329.6724466452619}"><br>>     </property><br>>     <entity name="IJMacro" class="
util.IJMacro"><br>>         <property name="macroString" class="ptolemy.data.expr.StringParameter" value="call(&quot;ij.IJ.runPlugIn&quot;,&quot;ij.plugin.BrowserLauncher&quot;,&quot;file://_FILE_&quot;);">
<br>>             <property name="macro" class="ptolemy.actor.gui.style.TextStyle"><br>>                 <property name="height" class="ptolemy.data.expr.Parameter" value="10">
<br>>                 </property><br>>                 <property name="width" class="ptolemy.data.expr.Parameter" value="30"><br>>                 </property><br>>             </property>
<br>>         </property><br>>         <property name="fileOrURL" class="ptolemy.data.expr.FileParameter"><br>>         </property><br>>         <property name="entityId" class="
org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org:actor:271:1"><br>>         </property><br>>         <property name="class" class="ptolemy.kernel.util.StringAttribute
" value="util.IJMacro"><br>>             <property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:1096:1"><br>>             </property>
<br>>         </property><br>>         <property name="semanticType000" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#ImageManipulationActor"><br>>         </property>
<br>>         <property name="semanticType111" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#ImageOperation"><br>>         </property><br>>         <property name="_location" class="
ptolemy.kernel.util.Location" value="[390.0, 225.0]"><br>>         </property><br>>     </entity><br>>     <entity name="RExpression" class="org.ecoinformatics.seek.R.RExpression
"><br>>         <property name="expression" class="ptolemy.kernel.util.StringAttribute" value="fn &lt;- pdf_file&#10;pdf(file=fn,width=6,height=6)&#10;plot(x &lt;- sort(rnorm(47)), type = &quot;s&quot;, main = &quot;plot(x, type = \&quot;s\&quot;)&quot;)&#10;dev.off()">
<br>>             <property name="R Expression" class="ptolemy.actor.gui.style.TextStyle"><br>>                 <property name="height" class="ptolemy.data.expr.Parameter" value="10">
<br>>                 </property><br>>                 <property name="width" class="ptolemy.data.expr.Parameter" value="30"><br>>                 </property><br>>             </property>
<br>>         </property><br>>         <property name="Rcwd" class="ptolemy.data.expr.StringParameter" value="C:\Documents and Settings\Dan Higgins"><br>>         </property>
<br>>         <property name="save_nosave" class="ptolemy.data.expr.StringParameter" value="--no-save"><br>>         </property><br>>         <property name="graphicsOutput" class="
ptolemy.data.expr.Parameter" value="false"><br>>         </property><br>>         <property name="numXPixels" class="ptolemy.data.expr.StringParameter" value="480">
<br>>         </property><br>>         <property name="numYPixels" class="ptolemy.data.expr.StringParameter" value="480"><br>>         </property><br>>         <property name="entityId" class="
org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org:actor:360:1"><br>>         </property><br>>         <property name="class" class="ptolemy.kernel.util.StringAttribute
" value="org.ecoinformatics.seek.R.RExpression"><br>>             <property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:1126:1
"><br>>             </property><br>>         </property><br>>         <property name="semanticType000" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#MathOperationActor">
<br>>         </property><br>>         <property name="semanticType111" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#GeneralPurpose"><br>>         </property>
<br>>         <property name="_location" class="ptolemy.kernel.util.Location" value="[240.0, 175.0]"><br>>         </property><br>>         <port name="fn" class="
ptolemy.actor.TypedIOPort"><br>>             <property name="output"/><br>>             <property name="_type" class="ptolemy.actor.TypeAttribute" value="string">
<br>>             </property><br>>         </port><br>>         <port name="pdf_file" class="ptolemy.actor.TypedIOPort"><br>>             <property name="input"/>
<br>>         </port><br>>     </entity><br>>     <entity name="Constant" class="ptolemy.actor.lib.Const"><br>>         <property name="value" class="ptolemy.data.expr.Parameter
" value="property(&quot;KEPLER&quot;)+&quot;/RData.pdf&quot;"><br>>         </property><br>>         <property name="entityId" class="org.kepler.moml.NamedObjId
" value="urn:lsid:kepler-project.org:actor:1:1"><br>>         </property><br>>         <property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.actor.lib.Const
"><br>>             <property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:877:1"><br>>             </property><br>
>         </property><br>>         <property name="semanticType000" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#ConstantActor"><br>>         </property>
<br>>         <property name="semanticType111" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#Constant"><br>>         </property><br>>         <property name="kar" class="
ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:kar:57:1"><br>>         </property><br>>         <property name="_icon" class="ptolemy.vergil.icon.BoxedValueIcon
"><br>>             <property name="attributeName" class="ptolemy.kernel.util.StringAttribute" value="value"><br>>             </property><br>>             <property name="displayWidth" class="
ptolemy.data.expr.Parameter" value="40"><br>>             </property><br>>         </property><br>>         <property name="_location" class="ptolemy.kernel.util.Location
" value="[65.0, 195.0]"><br>>         </property><br>>     </entity><br>>     <relation name="relation" class="ptolemy.actor.TypedIORelation"><br>>         <property name="width" class="
ptolemy.data.expr.Parameter" value="1"><br>>         </property><br>>     </relation><br>>     <relation name="relation2" class="ptolemy.actor.TypedIORelation">
<br>>         <property name="width" class="ptolemy.data.expr.Parameter" value="1"><br>>         </property><br>>     </relation><br>>     <link port="IJMacro.input
" relation="relation2"/><br>>     <link port="RExpression.fn" relation="relation2"/><br>>     <link port="RExpression.pdf_file" relation="relation"/>
<br>>     <link port="Constant.output" relation="relation"/><br>> </entity><br>><br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________
<br>> Kepler-users mailing list<br>> <a href="mailto:Kepler-users@ecoinformatics.org">Kepler-users@ecoinformatics.org</a><br>> <a href="http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users">
http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users</a><br>><br><br><br>--<br>*******************************************************************<br>Dan Higgins                                  <a href="mailto:higgins@nceas.ucsb.edu">
higgins@nceas.ucsb.edu</a><br><a href="http://www.nceas.ucsb.edu/">http://www.nceas.ucsb.edu/</a>    Ph: 805-893-5127<br>National Center for Ecological Analysis and Synthesis (NCEAS) Marine Science Building - Room 3405<br>
Santa Barbara, CA 93195<br>*******************************************************************<br><br><br>_______________________________________________<br>Kepler-users mailing list<br><a href="mailto:Kepler-users@ecoinformatics.org">
Kepler-users@ecoinformatics.org</a><br><a href="http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users">http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users</a><br></blockquote></div>
<br>