Skip to content
Prev 32231 / 63421 Next

Simple class with an automatic printing issue

It may have to do with the results of is.object():

  > is.object(1*structure(1,class="testClass"))
  [1] FALSE
  > is.object(structure(1,class="testClass")*1)
  [1] TRUE
  > is.object(structure(1,class="testClass"))
  [1] TRUE

is.object(x) should be true if x has a class attribute,
but 1*structute(1,class="testClass") makes a thing
with a class attribute but without the 'OBJECT' bit set.

Bill Dunlap
TIBCO Software Inc - Spotfire Division
wdunlap tibco.com