Skip Menu |

This queue is for tickets about the Statistics-R CPAN distribution.

Report information
The Basics
Id: 75393
Status: resolved
Priority: 0/
Queue: Statistics-R

People
Owner: Nobody in particular
Requestors: jtremblay [...] lbl.gov
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Bug report
Date: Tue, 28 Feb 2012 16:46:25 -0800
To: bug-Statistics-R [...] rt.cpan.org
From: Julien Tremblay <jtremblay [...] lbl.gov>
Dear Statistics::R maintainer(s), I just want to report a bug I've been experiencing. Here is a code snippet. foreach (@infile){ next if(!-e $_); $R->send("data_".$counter." <- read.table('".$_."', sep='\t', header=F, skip=1)"); $R->send("mySum_".$counter." <- NULL"); $R->send("mySum_".$counter."\$stats <- t(data_".$counter."[,11])"); $R->send("mySum_".$counter."\$stats <- (rbind(mySum_".$counter."\$stats, data_".$counter."[,7]))"); $R->send("mySum_".$counter."\$stats <- (rbind(mySum_".$counter."\$stats, data_".$counter."[,8]))"); $R->send("mySum_".$counter."\$stats <- (rbind(mySum_".$counter."\$stats, data_".$counter."[,9]))"); $R->send("mySum_".$counter."\$stats <- (rbind(mySum_".$counter."\$stats, data_".$counter."[,12]))"); $counter++; #and then generate plot string. } Really often the script will just hang and I have to ctrl-C to exit. To fix it I placed sleep(1); commands between each $R->send commands... Thanks! Julien Julien Tremblay, PhD Postdoctoral research fellow Computational biology DOE-Joint Genome Institute 2800 Mitchell Drive Walnut Creek, CA 94598 Office: (925) 296-5732 Fax: (925) 296-5620 jtremblay@lbl.gov
Hi Julien, send() is now a legacy method and was replaced by run(). Hence, your use of send() suggests to me that you are using an older version of Statistics::R. There have been substantial changes in Statistics::R in the last year, so please try the latest version at http://search.cpan.org/~fangly/Statistics-R-0.26/lib/Statistics/R.pm and tell me if you still experience this issue. Thanks, Florent
Subject: Re: [rt.cpan.org #75393] Bug report
Date: Wed, 29 Feb 2012 14:45:04 -0800
To: bug-Statistics-R [...] rt.cpan.org
From: Julien Tremblay <jtremblay [...] lbl.gov>
Hi Florent, Cool, I didn't realized send() had been replaced. Works fine now! Thanks! Julien On Wed, Feb 29, 2012 at 2:44 AM, Florent Angly via RT < bug-Statistics-R@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=75393 > > > Hi Julien, > > send() is now a legacy method and was replaced by run(). Hence, your use > of send() suggests to me that you are using an older version of > Statistics::R. There have been substantial changes in Statistics::R in > the last year, so please try the latest version at > http://search.cpan.org/~fangly/Statistics-R-0.26/lib/Statistics/R.pm and > tell me if you still experience this issue. > > Thanks, > > Florent > >