[Roxygen-devel] error with S4 class definition

Manuel J. A. Eugster Manuel.Eugster at stat.uni-muenchen.de
Sun Oct 3 08:19:24 CEST 2010


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.


More information about the Roxygen-devel mailing list