Re: [Rpy] printing object with rpy
On Tue, Oct 13, 2009 at 1:09 AM, Edwin Maurer wrote: > Here is a segment of the script I have: > > #!/usr/bin/python > import sys, os, string > ... > What am I missing here? Hi Ed, This is almost certainly due to the default (lossy) object conversion. Try turning off the conversion as explained in the documentation (and numerous mailing list questions). I'd say 9 times out of 10, this is what catches beginners out. I would write more, but I'm in a rush right now. I'll check this thread again later if you are still stuck - or someone else might try your example in full - complete examples are very useful when asking for help :) Regards, Peter -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list
Re: [Rpy] printing object with rpy
Thanks. I have changed the two lines returning more complex R objects from: Hpi1 = r.Hscv(x = x1,pre='scale') fhat = r.kde(x=x1,H=Hpi1) to: Hpi1 = with_mode(NO_CONVERSION, r.Hscv)(x = x1,pre='scale') fhat = with_mode(NO_CONVERSION, r.kde)(x=x1,H=Hpi1) And it seems to work. Well, the graphics window pops up and then instantly disappears. Now I need to figure out how to keep the graphics window from disappearing immediately, another beginner issue! Ed > Here is a segment of the script I have: > > #!/usr/bin/python > import sys, os, string > ... > What am I missing here? Hi Ed, This is almost certainly due to the default (lossy) object conversion. Try turning off the conversion as explained in the documentation (and numerous mailing list questions). I'd say 9 times out of 10, this is what catches beginners out. I would write more, but I'm in a rush right now. I'll check this thread again later if you are still stuck - or someone else might try your example in full - complete examples are very useful when asking for help :) Regards, Peter -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference___ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list
Re: [Rpy] printing object with rpy
On Tue, Oct 13, 2009 at 6:21 PM, Edwin Maurer wrote: > Thanks. I have changed the two lines returning more complex R objects from: > Hpi1 = r.Hscv(x = x1,pre='scale') > fhat = r.kde(x=x1,H=Hpi1) > to: > Hpi1 = with_mode(NO_CONVERSION, r.Hscv)(x = x1,pre='scale') > fhat = with_mode(NO_CONVERSION, r.kde)(x=x1,H=Hpi1) > And it seems to work. Great. > Well, the graphics window pops up and then instantly disappears. Now I need > to figure out how to keep the graphics window from disappearing immediately, > another beginner issue! Personally I used to just write directly to a PDF or PNG file, which bypasses the whole dynamic popup windows thing and the complications it brings. Note in rpy you'll need to use dev_off to access the dev.off function in R. Peter -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list