An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090629/5cb952a0/attachment-0001.pl>
how to call Perl from R
3 messages · mauede at alice.it, Marc Schwartz, Gabor Grothendieck
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
The read.xls function in the gdata package is another example (the call to system is actually in xls2csv which it calls).
On Mon, Jun 29, 2009 at 10:02 AM, Marc Schwartz<marc_schwartz at me.com> wrote:
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
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.