Re: [R] R command execution from shell

2011-01-05 Thread Sebastien Bihorel
Thank you for this alternative. Both seem to work on my systems. Sebastien Prof Brian Ripley wrote: On Tue, 4 Jan 2011, Duncan Murdoch wrote: On 04/01/2011 3:21 PM, Sebastien Bihorel wrote: Dear R-users, Is there a way I can ask R to execute the "write("hello world",file="hello.txt")" comma

Re: [R] R command execution from shell

2011-01-04 Thread Prof Brian Ripley
On Tue, 4 Jan 2011, Duncan Murdoch wrote: On 04/01/2011 3:21 PM, Sebastien Bihorel wrote: Dear R-users, Is there a way I can ask R to execute the "write("hello world",file="hello.txt")" command directly from the UNIX shell, instead of having to save this command to a .R file and execute this f

Re: [R] R command execution from shell

2011-01-04 Thread Sebastien Bihorel
Thank you That is exactly what I was looking for. Sebastien Duncan Murdoch wrote: On 04/01/2011 3:21 PM, Sebastien Bihorel wrote: Dear R-users, Is there a way I can ask R to execute the "write("hello world",file="hello.txt")" command directly from the UNIX shell, instead of having to save th

Re: [R] R command execution from shell

2011-01-04 Thread Duncan Murdoch
On 04/01/2011 3:21 PM, Sebastien Bihorel wrote: Dear R-users, Is there a way I can ask R to execute the "write("hello world",file="hello.txt")" command directly from the UNIX shell, instead of having to save this command to a .R file and execute this file with R CMD BATCH? Yes. Some versions

[R] R command execution from shell

2011-01-04 Thread Sebastien Bihorel
Dear R-users, Is there a way I can ask R to execute the "write("hello world",file="hello.txt")" command directly from the UNIX shell, instead of having to save this command to a .R file and execute this file with R CMD BATCH? Thank you Sebastien