From Richard.Beare at csiro.au  Fri Jan 30 07:54:07 2004
From: Richard.Beare at csiro.au (Richard.Beare@csiro.au)
Date: Fri Jan 30 07:54:25 2004
Subject: [Rd] object.size and external references (PR#6506)
Message-ID: <20040130065407.930EA10429@slim.kubism.ku.dk>

Full_Name: Richard Beare
Version: 1.8.1
OS: Linux
Submission from: (NULL) (130.155.16.102)


I have a package using external references, these are set up as follows

structure(list(.Call("MakeNullImPtr")), class = "image")

The MakeNullImPtr sets up the garbage collection etc

print(unclass(CMAP)) of an image object produces something like this
<pointer: 0x8cf3280>

The bug appears when applying object.size to this sort of object

> object.size(CMAP)
Error in object.size(CMAP) : object.size: unknown type 22

The correct response is debatable - 0, or NA might be appropriate, or perhaps
the real size of the pointer.

I only noticed this problem due to the use of object.size by the "debug"
package.


[Rd] object.size and external references (PR#6506)
Richard.Beare@csiro.au