For documenting classes with roxygen(2), specifying a title and description/details appears to be the same as for functions, methods, data, etc. However, slots and inheritance are their own sort of an
I\'m trying to convince an S4 method to use an expression as an argument, but I always get an error returned. A trivial example that illustrates a bit what I\'m trying to do here :
I have a class hierarchy with the superclass fb of which no objects should exist (I tried virtual classes but ran in the problem that you can not initialize objects from virtual classes). Further, I h
I want to create a class in R, should I use S3 or S4 class? I 开发者_如何学运维read a lot of different things about them, is there one superior to the other one?S3 can only dispatch on it\'s first ar
I used the packages topGO in R to analyze gene enrichment with the following code: sampleGOdata <- new(\"topGOdata\", description = \"Simple session\", ontology = \"BP\",
Which R packages make good use of S4 classes? I\'m looking for packages that use S4 appropriately (i.e. when the complexity of the underlying problem demands), are well written and well documented (so
I need to write one method that simultaneously updates an object and returns a value.I want to know if there is a way to do this in S4 classes.The context for this is that I am trying to write an S4 c
I\'m a newbie here.I am trying to use S4 classes.In some of my setting methods, I would like to take an input value and test if it is valid.If it is valid, I would like to assign it.If it is not valid
This is a follow-up question to a previous post. I need to write an initialize() method for a S4 class (named Band) that expects a matrix and a value for k. It should be defined as a function with fo
Does anyone know what a slot is in R? I did not find the explanation of its meaning. I get a recursive definition: