[BioC] R from perl
Sean Davis
sdavis2 at mail.nih.gov
Wed Dec 14 13:10:26 CET 2005
On 12/14/05 4:15 AM, "Steffen Durinck" <sdurinck at ebi.ac.uk> 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 ....
I forgot to mention one pure-perl solution, Statistics-R:
http://search.cpan.org/~gmpassos/Statistics-R-0.02/
Works with Windows. Quite a different interface than RSPerl, but does start
a persistent R interpreter.
Sean
> 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
>>
>>
>>
More information about the Bioconductor
mailing list