[R] Running a PERL script from R

Charles C. Berry cberry at tajo.ucsd.edu
Sat Sep 8 02:45:06 CEST 2007


On Fri, 7 Sep 2007, Pierce, Ken wrote:

> I've tried various configurations of .script, system and shell to no
> avail. It seems to pause and run "something" but then no output is
> created.

Works for me:

> cat( 'print "Hello World\n";',file="hello.pl" )
> system("perl hello.pl")
Hello World
>

Maybe a path issue?

>
> -----Original Message-----
> From: Dirk Eddelbuettel [mailto:edd at debian.org]
> Sent: Friday, September 07, 2007 1:11 PM
> To: Pierce, Ken
> Cc: r-help
> Subject: Re: [R] Running a PERL script from R
>
> On Fri, Sep 07, 2007 at 12:15:51PM -0700, Pierce, Ken wrote:
>> Is there a way to run a simple perl script from R?
>
> ?system
>
> Hth, Dirk
>
> --
> Three out of two people have difficulties with fractions.
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>

Charles C. Berry                            (858) 534-2098
                                             Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu	            UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901



More information about the R-help mailing list