From h.wickham at gmail.com  Mon Jan 19 16:18:06 2009
From: h.wickham at gmail.com (hadley wickham)
Date: Mon, 19 Jan 2009 09:18:06 -0600
Subject: [Rd] Floating point excepting when cbind()ing a matrix of grobs (or
	environments) with a 0-column matrix
Message-ID: <f8e6ff050901190718j65b829c5q68be435a14d8ae9b@mail.gmail.com>

library(grid)
e <- rectGrob()
# OR:
# e <- environment()

a <- matrix(list(e), ncol = 1, nrow = 2)
b <- matrix(ncol = 0, nrow = 2)

cbind(a, b)

cbind(a, b)

This reliably crashes R for me.

I realise this is a rather esoteric error condition, but it crops up
for me when creating matrices of grobs to be turned into a ggplot2
plot.

Hadley

-- 
http://had.co.nz/



[Rd] Floating point excepting when cbind()ing a matrix of grobs (or environments) with a 0-column matrix
hadley wickham