Re: [R] Running a PERL script from R

2007-09-08 Thread Paul Hiemstra
Dear Ken.

You could also try and use RSPerl (http://www.omegahat.org/RSPerl/). It 
allows one to use R commands in Perl and vice-versa.

regards,

Paul

Pierce, Ken schreef:
 Is there a way to run a simple perl script from R?
  

 Kenneth B. Pierce Jr.

 Research Ecologist

 Landscape Ecology, Modeling, Mapping and Analysis Team 

 PNW Research Station - USDA-FS 

 3200 SW Jefferson Way,  Corvallis,  OR 97331 

 [EMAIL PROTECTED]

 541 750-7393 

 http://www.fsl.orst.edu/lemma/gnnfire

 http://www.fsl.orst.edu/R_users/index.php

  

   [[alternative HTML version deleted]]

 __
 R-help@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.
   


-- 
Drs. Paul Hiemstra
Department of Physical Geography
Faculty of Geosciences
University of Utrecht
Heidelberglaan 2
P.O. Box 80.115
3508 TC Utrecht
Phone: +31302535773
Fax:+31302531145
http://intamap.geo.uu.nl/~paul

__
R-help@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.


Re: [R] Running a PERL script from R

2007-09-08 Thread Dirk Eddelbuettel

On 7 September 2007 at 14:04, 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. 

Make sure you read the help page for system, and understand the options. Esp
on Windows, you will need them to display/capture what is happening.

Dirk


| -Original Message-
| From: Dirk Eddelbuettel [mailto:[EMAIL PROTECTED] 
| 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.

-- 
Three out of two people have difficulties with fractions.

__
R-help@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.


Re: [R] Running a PERL script from R

2007-09-07 Thread Dirk Eddelbuettel
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@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.


Re: [R] Running a PERL script from R

2007-09-07 Thread Pierce, Ken
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. 

-Original Message-
From: Dirk Eddelbuettel [mailto:[EMAIL PROTECTED] 
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@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.


Re: [R] Running a PERL script from R

2007-09-07 Thread Charles C. Berry
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:[EMAIL PROTECTED]
 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@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:[EMAIL PROTECTED]  UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901

__
R-help@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.