[R] Call R from Perl

8 views
Skip to first unread message

Daniel Fernandez

unread,
May 6, 2009, 2:31:12 AM5/6/09
to r-h...@r-project.org
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.

[[alternative HTML version deleted]]

______________________________________________
R-h...@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.

Kevin E. Thorpe

unread,
May 6, 2009, 8:09:26 AM5/6/09
to Daniel Fernandez, r-h...@r-project.org
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....@utoronto.ca Tel: 416.864.5776 Fax: 416.864.6057

Daniel Fernandez

unread,
May 6, 2009, 8:13:08 AM5/6/09
to Kevin E. Thorpe, r-h...@r-project.org
I'm not sure but my guess is that part isn't working... is that the
way to call R from perl?

Sent from my iPhone

On May 6, 2009, at 8:09 AM, "Kevin E. Thorpe"

Kevin E. Thorpe

unread,
May 6, 2009, 8:16:20 AM5/6/09
to Daniel Fernandez, r-h...@r-project.org
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.

Reply all
Reply to author
Forward
0 new messages