<div>1. tested code:</div><div><br></div><div><div>import rpy2</div><div>import rpy2.robjects as robjects</div><div>print(rpy2.__version__)</div><div>print(robjects.r)</div><div>r = robjects.r</div><div>r.require("iplots")[0]</div>
<div>r.require("iplots")</div><div>r.require("iplots").r_repr()</div><div>r.require("ade4")[0]</div></div><div><br></div>2. I am testing the code in the ms-dos prompt with python itself, and it is ok, the result is<div>
<br></div><div><div>C:\temp>python rpy2_iplots.py</div><div>2.0.6</div><div><rpy2.robjects.R object at 0x01FD22F0></div><div>platform: i386-pc-mingw32</div><div>arch: i386</div><div>os: mingw32</div><div>system: i386, mingw32</div>
<div>status:</div><div>major: 2</div><div>minor: 9.0</div><div>year: 2009</div><div>month: 04</div><div>day: 17</div><div>svn rev: 48333</div><div>language: R</div><div>version.string: R version 2.9.0 (2009-04-17)</div><div>
Loading required package: iplots</div><div>Loading required package: rJava</div><div>Warning messages:</div><div>1: package 'iplots' was built under R version 2.9.1</div><div>2: package 'rJava' was built under R version 2.9.1</div>
<div>Loading required package: ade4</div><div><br></div><div>Attaching package: 'ade4'</div><div><br></div><div><br></div><div> The following object(s) are masked from package:base :</div><div><br></div><div>
within</div><div><br></div><div>Warning message:</div><div>package 'ade4' was built under R version 2.9.2</div><div><br></div><div>C:\temp></div><div><br></div><div>Anne: ade4 package is working very well in my environment.</div>
<div><br></div><div>3. BUT, now tested with pywin32, the pythonwin is crashed.</div><div><br></div><div>maybe the problem is related with pywin32, not rpy2.<br><br><div class="gmail_quote">On Wed, Dec 9, 2009 at 4:37 PM, Agustin Lobo <span dir="ltr"><<a href="mailto:alobolistas@gmail.com">alobolistas@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Sorry I cannot test this further until next weekend.<br>
So far the only difference with the new version is that<br>
I get "a formal complaint" on lacking rJava in a popup window instead of<br>
the list of python errors. But rJava is installed<br>
and running fine as far as I can tell (which is not a lot as<br>
I rarely use rJava).<br>
Thanks for your work.<br>
<br>
Agus<br>
<br>
Volkan Kepoglu wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
updated with ver. 0.142, could you try that if it is fixed?<br>
<br>
1. added loading of rJava package function<br>
2. changed the style of loading of iplot package: first checks the package installed or not<br>
and then loads the package but skips to control the package whether it is loaded or not,<br>
because, most probably, i think that there is a bug for iplots package. even it is loaded, sometimes do not return true.<br>
for this reason, i prefered not to control the library whether loaded or not.<br>
<br></div><div><div></div><div class="h5">
On Tue, Dec 8, 2009 at 9:30 PM, Agustin Lobo [via OSGeo.org] <[hidden email] <<a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4139061&i=0" target="_blank">http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4139061&i=0</a>>> wrote:<br>
<br>
Dear Volkan,<br>
Thanks for SDA4PP.<br>
When I try to run the Linked Statistical Display in SDA4PP (0.141)<br>
(R 2.10)<br>
(QGIS 1.3.0 from ubuntu jaunty binaries) I get the following error<br>
despite having the package rJava installed (also: note that rJava is<br>
not listed among the dependencies):<br>
<br>
Traceback (most recent call last):<br>
File "/home/alobo/.qgis//python/plugins/SDA4PP/sda4pp.py", line<br>
163, in<br>
doIplotTool<br>
d = iplot.IplotTool(self.iface)<br>
File "/home/alobo/.qgis//python/plugins/SDA4PP/iplot.py", line<br>
64, in __init__<br>
self.readInputFile()<br>
File "/home/alobo/.qgis//python/plugins/SDA4PP/iplot.py", line<br>
357, in<br>
readInputFile<br>
errorChecking = sda4ppLoadRpackage.readLib("iplot")<br>
File<br>
"/home/alobo/.qgis//python/plugins/SDA4PP/sda4ppLoadRpackage.py", line<br>
57, in readLib<br>
result += loadIplot(r)<br>
File<br>
"/home/alobo/.qgis//python/plugins/SDA4PP/sda4ppLoadRpackage.py", line<br>
137, in loadIplot<br>
if (r.require("iplots")[0]):<br>
File<br>
"/usr/local/lib/python2.6/dist-packages/rpy2/robjects/__init__.py",<br>
line<br>
422, in __call__<br>
res = super(RFunction, self).__call__(*new_args, **new_kwargs)<br>
RRuntimeError: Error: package 'rJava' could not be loaded<br>
<br>
Thanks,<br>
<br>
Agus<br>
<br>
_______________________________________________<br>
Qgis-user mailing list<br>
[hidden email]<br></div></div>
<<a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4134711&i=0" target="_blank">http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4134711&i=0</a>><div class="im"><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
<br>
<br>
<br>
<br></div><div class="im">
-- <br>
Regards,<br>
Volkan Osman Kepoglu<br>
PhD Candidate<br>
GGIT Department in METU,<br></div>
http:/<a href="http://ggit.metu.edu.tr" target="_blank">ggit.metu.edu.tr</a> <<a href="http://ggit.metu.edu.tr" target="_blank">http://ggit.metu.edu.tr</a>><br>
<br>
------------------------------------------------------------------------<br>
View this message in context: Re: [Qgis-user] Problem with SDA4PP/Linked Statistical Display <<a href="http://n2.nabble.com/Problem-with-SDA4PP-Linked-Statistical-Display-tp4134711p4139061.html" target="_blank">http://n2.nabble.com/Problem-with-SDA4PP-Linked-Statistical-Display-tp4134711p4139061.html</a>><br>
Sent from the qgis-user mailing list archive <<a href="http://n2.nabble.com/qgis-user-f2036571.html" target="_blank">http://n2.nabble.com/qgis-user-f2036571.html</a>> at Nabble.com.<br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Qgis-user mailing list<div class="im"><br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
</div><div class="im"><a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</div></blockquote>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Volkan Osman Kepoglu<br>PhD Candidate<br>GGIT Department in METU,<br>http:/<a href="http://ggit.metu.edu.tr">ggit.metu.edu.tr</a><br>
</div></div>