Re: [R] Using Rscript in version 3.0.0

2013-05-06 Thread Rolf Turner
On 07/05/13 02:10, Ken Weiss wrote: Greetings, I have just installed version 3.0.0. I am trying to use code that I have used numerous times in previous versions of R. My code executes correctly until I try to call makePSOCKcluster. I issue the following command and get the following error: >

Re: [R] Using Rscript to read from a file

2010-10-14 Thread Saptarshi Guha
Dirk, thanks. On Thu, Oct 14, 2010 at 9:42 AM, Dirk Eddelbuettel wrote: > > On 14 October 2010 at 11:21, Dirk Eddelbuettel wrote: > | On 14 October 2010 at 08:49, Saptarshi Guha wrote: > | | Hello, > | | I have this script which will be invoked as > | | > | | Rscript a.r < a.r > | | > | | a.r fol

Re: [R] Using Rscript to read from a file

2010-10-14 Thread Dirk Eddelbuettel
On 14 October 2010 at 11:21, Dirk Eddelbuettel wrote: | On 14 October 2010 at 08:49, Saptarshi Guha wrote: | | Hello, | | I have this script which will be invoked as | | | | Rscript a.r < a.r | | | | a.r follows | | | | #!/usr/bin/Rscript --vanilla | | f=file("stdin") | | while(TRUE){ | | y

Re: [R] Using Rscript to read from a file

2010-10-14 Thread Dirk Eddelbuettel
On 14 October 2010 at 08:49, Saptarshi Guha wrote: | Hello, | I have this script which will be invoked as | | Rscript a.r < a.r | | a.r follows | | #!/usr/bin/Rscript --vanilla | f=file("stdin") | while(TRUE){ | y=readLines(f,n=1,warn=TRUE) | if(length(y)==0) break else print(y) | } | |

Re: [R] Using Rscript

2009-01-30 Thread Prof Brian Ripley
You use the facilities of your command-line shell. Rscript infile.R > outfile works in every one I have seen in recent years, including Windows' cmd.exe (although many people prefer more capable shells on that platform such as tcsh or bash). On Fri, 30 Jan 2009, Philip Whittall wrote: Dear