[Rd] object.size and external references (PR#6506)

Richard.Beare at csiro.au Richard.Beare at csiro.au
Fri Jan 30 07:54:07 MET 2004


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.



More information about the R-devel mailing list