On 24/11/2010 15:24, Albert Mascarell wrote:
> Dears,

Hello

> Regarding to R shell iissues I would like to ask something: I want to
> run an R script using T2server which generates a png plot as output. I
> am able to retrieve a single plot if I run the Rscript once. However if
> I want to loop through a data-file (example: for every ID in the data,
> run some R code), the system is not able to generate different plots and
> save in differents names, since it must be output as a variable
> png(variable) --> outputport variable.
> If I create a iteration counter and I loop inside Rscript, (let's say
> from 1 to 10), my final workflow outputs are the iteration 10 and the
> output of the 10th ID number, so it seems to be overwriting the files.
>
> Is there a clear solution for this looping issue. I tried to loop in the
> PHP that calls the server, but this is not so clean and generates tomcat
> saturation.

It's an interesting problem.  I don't see a way to do that in Taverna at 
the moment.  I will add it into Jira.

The best solution I can think of is to get the R script to write the 
images to files in a directory that is accessible via HTTP.  The R 
script can return the URLs to the files as a String vector.  You will 
then need to use the local service get image from URL to download the 
images.  It is not a nice solution but it should work.

> Thanks,
>
>
> Regards,
>
> Albert Mascarell Creus
> www.o2hlink.com <http://www.o2hlink.com>

Alan


------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
taverna-users mailing list
[email protected]
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/

Reply via email to