Hello Sean,
The code that i was using was simply pasting the same code in python.
r("i<-1")  # i should use the attach statement i think
r("while (i <= length(groups) ) {")
r("png(file=sprintf('MAplot%03d.png', i), width=600, height=600)")
r("MAplot(rawAffyData, pairs=TRUE, plot.method='smoothScatter'
which=groups[[i]])")
r("dev.off()")
r("i<-i+1 }")

But i expect that using rpy in such a way is completely wrong. I'm just
testing what can be done by rpy
Currently they have rserve running on a server that connects several app's
to R. The only problem is that i couldn't
find a interface between python and rserve.

Besides the lack of the interface, rserve caused a lot of maintenance
problems so i suggested to look further into rpy as
interface between the apps and R.

I can't give you the exact error because i'm not in the office now but i
think it was something about ''unsubscribe error'' and it gave the first
line till { between brackets.

Hope this helps,

Thanks

Richard

ps: if you need the exact error i will post it tomorrow ( for me :) )





On Jan 15, 2008 7:51 PM, Sean Davis <[EMAIL PROTECTED]> wrote:

>
>
> On Jan 15, 2008 1:38 PM, richard mendes <[EMAIL PROTECTED]> wrote:
>
> >
> > Hello Rpy users,
> >
> > Probably a very simple question but i couldn't find the answer in the
> > documentation.
> > i have a r script which uses a while loop, how should i execute this in
> > rpy ?
> >
> > the script looks like:
> >
> > i<-1
> >
> > while (i <= length(groups) ) {
> >                png(file=sprintf('MAplot%03d.png', i), width=600,
> > height=600)
> >                MAplot(rawAffyData, pairs=TRUE,
> > plot.method='smoothScatter' which=groups[[i]])
> >                dev.off()
> >                i<-i+1 }
> >
> > if i normally run this in a r terminal everything will go fine but
> > running it from rpy line by line will give a error.
> >
>
> Hi, Richard.
>
> What error are you getting?  And what is the python code that you are
> using?
>
> Sean
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> rpy-list mailing list
> rpy-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rpy-list
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to