Skip to content
Prev 56424 / 398500 Next

Pixmap problem


        
> On Wed, 25 Aug 2004, Benjamin Lloyd-Hughes wrote:
>> Hi,
  >> 
  >> I'm having trouble writing .pnm images which I think is due to a problem
  >> with my colour space.  The pixmap object seems to be looking for 72 of 8
  >> colours (one per cell?) which doesn't seem healthy...
  >> 
  >> > library(pixmap)
  >> > x <- pixmapIndexed(rep(1:8, 9), nrow=6, col=rainbow(8))
  >> > x
  >> Pixmap image
  >> Type          : pixmapIndexed 
  >> Size          : 6x12 
  >> Resolution    : 1x1 
  >> Bounding box  : 0 0 12 6 
  >> Nr. of colors : 72 of 8 
  >> 
  >> > write.pnm(x, file="D:/Temp/output.pnm")
  >> Error in options(x) : evaluation nested too deeply: infinite recursion /
  >> options(expression=)?

  > This one is in:

  >> x <- pixmapIndexed(rep(1:8, 9), nrow=6, col=rainbow(8))
  >> as(x, "pixmapRGB")
  > Error in options(x) : evaluation nested too deeply: infinite recursion / 
  > options(expression=)?


Actually that was a bug in the methods package of R which was
triggered by pixmap, i.e., no pixmap problem. It has been fixed in the
soon to be released version 2.0.0 of R. Sorry for the late answer, I
have been travelling for most of the last month and didn't have
Internet access all the time, hence the pile of unanswered emails got
larger and larger.

Best,
Fritz