[R] Using Rscript in version 3.0.0

2013-05-06 Thread Ken Weiss
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: cluster - makePSOCKcluster(nodes,

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:

[R] Using Rscript to read from a file

2010-10-14 Thread Saptarshi Guha
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) } But it only reads one line from a.r How can I read line by line from standard

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 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){ | |

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 e...@debian.org 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 | | | |

[R] Using Rscript in combination with eval() results in error

2010-02-11 Thread Janko Thyson
Dear List, I'm having trouble running a .bat file which calls an R-Script via the command line (using Rscript). I put the following line in a file called test.bat: Rscript --vanilla test.R Then I tried to launch test.bat via Windows' CMD (I plan to make this a scheduled Windows task). The

[R] Using Rscript

2009-01-30 Thread Philip Whittall
Dear List, Hopefully someone will point me to a piece of documentation that I have overlooked. I am running Rscript successfully to read and execute an R program, but have failed to find the correct syntax to route the output to a file using the Rscript command that invokes the job. I tried

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