[BioC] R from perl

Kort, Eric Eric.Kort at vai.org
Wed Dec 14 14:24:47 CET 2005


To be complete, he would actually need:

my $cmd = `R CMD BATCH yourscript.R;
system($cmd);

Right?  And depending what he does in the script, the following might be
expedient:

my $cmd = `R CMD BATCH yourscript.R > results.txt;
system($cmd);

He also asked earlier "Is R recognised as a proper command to run on
dos?"...the answer being yes, if you installed it and it is in your
PATH, which is no different than Perl.

-Eric

Steffen Durinck wrote:
 
>Hi,
>
>One possible solution on Windows is when you would have an R script
that 
>can get the data it needs from some temporary files created by Perl and

>knows what is has to do with it.
>
>Then include this line in your Perl code:
>my $cmd = `R CMD BATCH yourscript.R`;
>
>make the R script write the output to some other temporary files which 
>are then read by Perl.
>Instead of working with temp files you could also use a database ....
>
>Best,
>Steffen
>
>


Sean Davis wrote:

>
>On 12/13/05 2:20 PM, "madhurima_b at persistent.co.in"
><madhurima_b at persistent.co.in> wrote:
>
>  
>
>>Is R recognised as a proper command to run on dos?
>>    
>>
>
>>From the RSPerl page--I have bad news:
>http://www.omegahat.org/RSPerl/
>
>"A (very) brief description of calling R from Perl. This only works on
Unix.
>(Only tested on Linux.) Do not expect this to run on Windows."
>
>_______________________________________________
>Bioconductor mailing list
>Bioconductor at stat.math.ethz.ch
>https://stat.ethz.ch/mailman/listinfo/bioconductor
>
>  
>

_______________________________________________
Bioconductor mailing list
Bioconductor at stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/bioconductor
This email message, including any attachments, is for the so...{{dropped}}



More information about the Bioconductor mailing list