search for: emptyfitresult

Displaying 2 results from an estimated 2 matches for "emptyfitresult".

2016 Apr 22
2
S4 non-virtual class with no slots?
It seems that if an S4 class has no slots it can't be instantiated because it is assumed to be virtual. Is there a way around this other than adding a do-nothing slot? A singleton would be OK, though is not essential. Problem: EmptyFitResult <- setClass("EmptyFitResult", representation=representation()) # also tried it without the second argument. same result. > e <- EmptyFitResult() Error in new("EmptyFitResult", ...) : trying to generate an object from a virtual class ("EmptyFitResult") T...
2016 Apr 23
0
S4 non-virtual class with no slots? [SOLVED]
...? On 04/22/2016 04:38 PM, Boylan, Ross wrote: > It seems that if an S4 class has no slots it can't be instantiated because it is assumed to be virtual. Is there a way around this other than adding a do-nothing slot? A singleton would be OK, though is not essential. > > Problem: > EmptyFitResult <- setClass("EmptyFitResult", representation=representation()) > # also tried it without the second argument. same result. > > e <- EmptyFitResult() > Error in new("EmptyFitResult", ...) : > trying to generate an object from a virtual class ("E...