[R] how to call Perl from R

Marc Schwartz marc_schwartz at me.com
Mon Jun 29 16:02:41 CEST 2009


On Jun 29, 2009, at 8:58 AM, mauede at alice.it wrote:

> I read some archived posts about calling R from Perl scripts. There  
> seems to be an R package creating the necessaary interface.
>
> I'd like to do the opposite. That is to call Perl from an R script.
> I wonder whether this is possible at all ???
> What about Bioperl which is a Perl variation built to deal with  
> Bioinformatic datasets ?
>
> Thank you,
> Maura

You would typically use the system() function to do this. See ?system  
for more information.

If you want to see a specific example, which includes passing  
arguments to the Perl script, you can look at the R and Perl code in  
the WriteXLS package on CRAN.

HTH,

Marc Schwartz




More information about the R-help mailing list