Re: [R] Cannot use setClass() in Rscript

2012-02-15 Thread Jonathan Callahan
Brilliant! Problem solved and you have just saved me many hours of frustration. Thanks so much. On Wed, Feb 15, 2012 at 1:12 PM, Martin Morgan wrote: > On 02/15/2012 12:33 PM, Jonathan Callahan wrote: > >> Greetings, >> >> I am creating a standalone executable script using Rscript and have run

Re: [R] Cannot use setClass() in Rscript

2012-02-15 Thread Martin Morgan
On 02/15/2012 12:33 PM, Jonathan Callahan wrote: Greetings, I am creating a standalone executable script using Rscript and have run into problems when I define a new S4 class. Here is a small script that demonstrates my problem: Hi -- Check out the difference between R --vanilla -e "sessio

[R] Cannot use setClass() in Rscript

2012-02-15 Thread Jonathan Callahan
Greetings, I am creating a standalone executable script using Rscript and have run into problems when I define a new S4 class. Here is a small script that demonstrates my problem: #!/usr/bin/env Rscript # # toy.Rscript -- testing S4 class creation in an Rscript setClass("toy", representation(n