Re: [R] Rscript question

2010-02-19 Thread Prof Brian Ripley
On Fri, 19 Feb 2010, Jinfeng Liu wrote: OS gmail.com> writes: Hi, I have some code I run interactively through the R interpreter and it works fine. I then run it as a script with Rscript and I get an error. The error is coming when Rscript builds a model matrix. Output from Rscript with the e

Re: [R] Rscript question

2010-02-19 Thread Jinfeng Liu
OS gmail.com> writes: > Hi, > I have some code I run interactively through the R interpreter and it works > fine. I then run it as a script with Rscript and I get an error. The error > is coming when Rscript builds a model matrix. > > Output from Rscript with the error: > running > '/usr/lib/R/

[R] Rscript question

2010-01-21 Thread OS
Hi, I have some code I run interactively through the R interpreter and it works fine. I then run it as a script with Rscript and I get an error. The error is coming when Rscript builds a model matrix. Here is the Rscript code : #!/usr/lib/R/bin/Rscript --verbose require(MASS) options(contrasts =