RE: [R] invoking R scripts from a linux shell ?

2004-01-15 Thread Kort, Eric
> -Original Message- > From: Enrico Curiotto [mailto:[EMAIL PROTECTED] > Hello, > > I have written perl programs that extract data from a > text file, process them, and create other text files, > which I'd like to apply some statistics too (for > example with R). > > I'd like to do it all

Re: [R] invoking R scripts from a linux shell ?

2004-01-15 Thread Itay Furman
On Thu, 15 Jan 2004, Enrico Curiotto wrote: > Hello, > > I have written perl programs that extract data from a > text file, process them, and create other text files, > which I'd like to apply some statistics too (for > example with R). > > I'd like to do it all in once , with a single script. >

Re: [R] invoking R scripts from a linux shell ?

2004-01-16 Thread Seth Falcon
Hi Enrico, As seen by other posts, there are many ways to accomplish this sort of thing. For simple tasks I've often found it easiest to call R from my script (in my case Python). I've not used BATCH mode and instead call R like this: R --slave --no-save < script.R A common setup for me is

RE: [R] invoking R scripts from a linux shell ?

2004-01-21 Thread vfasciani
Ciao Enrico, I think you can skip to use a shell as you described. There are some ways to include R script in a perl script. I included below two examples I wrote for better understand. ## prova1.pl ### #!/usr/local/bin/perl open (FILE, ">test.txt"); print FILE "a,b,c,d,e\n1,2,3,4,5"; c