Re: [R] executable R scripts

2003-06-09 Thread Greg Louis
On 20030608 (Sun) at 1735:14 -0700, John Zedlewski wrote: > Hi, I'm a newbie trying to make an R program executable on UNIX, just like one > would write an executable perl script by putting "#!/usr/bin/perl" in the > first line, and so on. > > It seems, though, that this would only work if I use

Re: [R] executable R scripts

2003-06-08 Thread John Zedlewski
Dirk and Jonathan-- Thanks a lot for the fast and helpful comments, guys. I ended up writing a wrapper script that uses the trick of echoing "source(\"filename\")" into R --slave, and it works well. Thanks again! --JRZ __ [EMAIL PROTECTED] mailing

Re: [R] executable R scripts

2003-06-08 Thread Dirk Eddelbuettel
On Sun, Jun 08, 2003 at 05:35:14PM -0700, John Zedlewski wrote: > Hi, I'm a newbie trying to make an R program executable on UNIX, just like one > would write an executable perl script by putting "#!/usr/bin/perl" in the > first line, and so on. This is not currently supported, but with some luc

Re: [R] executable R scripts

2003-06-08 Thread Jonathan Baron
On 06/08/03 17:35, John Zedlewski wrote: >Hi, I'm a newbie trying to make an R program executable on UNIX, just like one >would write an executable perl script by putting "#!/usr/bin/perl" in the >first line, and so on. > >It seems, though, that this would only work if I use the "BATCH" command t

[R] executable R scripts

2003-06-08 Thread John Zedlewski
Hi, I'm a newbie trying to make an R program executable on UNIX, just like one would write an executable perl script by putting "#!/usr/bin/perl" in the first line, and so on. It seems, though, that this would only work if I use the "BATCH" command to tell R to execute the program in its first