[R] Call R from Perl

Kevin E. Thorpe kevin.thorpe at utoronto.ca
Wed May 6 14:16:20 CEST 2009

Daniel Fernandez wrote:
> I'm not sure but my guess is that part isn't working... is that the way 
> to call R from perl?

It's the way I would call R in batch from the command line.  In your 
call you are missing the CMD part.

> Sent from my iPhone
> On May 6, 2009, at 8:09 AM, "Kevin E. Thorpe" <kevin.thorpe at utoronto.ca> 
> wrote:
>> Daniel Fernandez wrote:
>>> Hi,
>>> I am trying to call R in my perl program but is not working. It does not
>>> give an error but my program gets stuck indefinitely.
>>> I am using the following command to call R from Perl
>>> `R BATCH regressExpr.spl temp`;
>>> Any suggestions?
>>> Best,
>>> Daniel F.
>> Does `R CMD BATCH regressExpr.spl temp` work?

Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Dalla Lana School of Public Health
University of Toronto
email: kevin.thorpe at utoronto.ca  Tel: 416.864.5776  Fax: 416.864.6057

More information about the R-help mailing list