[R] "Error: attempt to apply non function" and reference classes

2014-03-03 Thread Dave Mitchell
Hello, Currently I'm using a reference class in my script to manage data exporting. Sometimes, when I run my script things will be progressing as expected when (seemingly mysteriously) every method in the object will return "Error: attempt to apply non-function". Attempting to recreate the object

Re: [R] Error: attempt to apply non-function

2010-09-23 Thread Duncan Murdoch
On 23/09/2010 8:54 AM, Maas James Dr (MED) wrote: This code worked fine for me, then did some cleaning up of formatting using ESS (Emacs) and now I get this error, no idea what is causing it, all the brackets/parentheses seem to be balanced. What have I done wrong? It would help a lot if yo

Re: [R] Error: attempt to apply non-function

2010-09-23 Thread peter dalgaard
On Sep 23, 2010, at 14:54 , Maas James Dr (MED) wrote: > This code worked fine for me, then did some cleaning up of formatting using > ESS (Emacs) and now I get this error, no idea what is causing it, all the > brackets/parentheses seem to be balanced. What have I done wrong? Look for ") ("

[R] Error: attempt to apply non-function

2010-09-23 Thread Maas James Dr (MED)
This code worked fine for me, then did some cleaning up of formatting using ESS (Emacs) and now I get this error, no idea what is causing it, all the brackets/parentheses seem to be balanced. What have I done wrong? Thanks Jim p0.trial01 <- 0.25 TruOR01 <- 0.80 num.patients.01 <- 50 num.tri