Message-ID: <4A017F94.3040405@utoronto.ca>
Date: 2009-05-06T12:16:20Z
From: Kevin E. Thorpe
Subject: Call R from Perl
In-Reply-To: <218F7578-6D36-49E4-906B-C70790D49188@gmail.com>
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