[Bioc-devel] class declaration

Henrik Bengtsson hb at stat.berkeley.edu
Wed Feb 13 18:09:36 CET 2008


Ok, now when that works I would like to ask a more general question:

Is it completely safe to have spaces in class declarations?  ...or
function definitions, e.g.

> "foo bar" <- function(x) x
> "foo bar"(3)
[1] 3

I can definitely see how this increases the risk for
mistakes/misunderstandings.  Is this something that should be
discouraged?

/Henrik

On Feb 13, 2008 6:56 AM, John Lande <john.lande77 at gmail.com> wrote:
> yep worked! tnx
>
> On Feb 13, 2008 3:50 PM, Sean Davis <sdavis2 at mail.nih.gov> wrote:
>
> > On Feb 13, 2008 9:44 AM, John Lande <john.lande77 at gmail.com> wrote:
> > > Dear all,
> > >
> > > I am creating a class for my function composed by two expression set:
> > >
> > > let say
> > >
> > > >setClass("my class",  representation(a="ExpressionSet",
> > b="ExpressionSet")
> > >
> > > when I lunch it I retrieve this warning.
> > >
> > > [1] "my class"
> > > Warning message:
> > > In .completeClassSlots(ClassDef, where) :
> > >   undefined slot classes in definition of "my class": a(class
> > > "ExpressionSet"), b(class "ExpressionSet")
> > >
> > > how can  solve this problem?
> >
> > Hi, John.  You need to load Biobase first, as "ExpressionSet" is not
> > defined.  That should solve the problem.
> >
> > Sean
> >
>
>         [[alternative HTML version deleted]]
>
>
> _______________________________________________
> Bioc-devel at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel
>



More information about the Bioc-devel mailing list