[Roxygen-devel] error with S4 class definition

Vinh Nguyen vqnguyen at uci.edu
Sun Oct 3 09:27:14 CEST 2010


On Sat, Oct 2, 2010 at 11:19 PM, Manuel J. A. Eugster
<Manuel.Eugster at stat.uni-muenchen.de> wrote:
> Hi Vinh,
>
> try 'contains = c("matrix"))'; i.e.,
>
>> ##' inference class
>> ##'
>> ##' hello
>> ##'
>> ##' @name inference-class
>> ##' @slot .Data matrix consisting of inferential values
>> ##' @slot sample.size Sample size used in model fit.
>> ##' @slot robust.se Boolean indicator whether robust standard errors were
>> ##' used.
>> ##' @slot two.sided Boolean indicator whether p-values corresond to a
>> ##' two-sided test or one-sided.
>> ##' @slot ci.level Confidence level.
>> setClass(Class="inference",
>> representation=representation(model="character"
>>                                      , sample.size="numeric"
>>                                      , robust.se="logical"
>>                                      , two.sided="logical"
>>                                      , ci.level="numeric")
>>          , contains=c("matrix"))
>
> The S4 parser requires "this full specification".
>
>
> Manuel.
>

Thanks Manuel this works.  I thought "full specification" referred to
explicitly stating the argument names.

Vinh


More information about the Roxygen-devel mailing list