From greg at warnes.net  Fri Jan  2 00:35:23 2015
From: greg at warnes.net (Gregory R. Warnes)
Date: Thu, 1 Jan 2015 18:35:23 -0500
Subject: [Rd] Reimplement stats:::plotNode as iterative to avoid recursion
	limits?
Message-ID: <09472B94-FD68-421A-9A06-A29C5D5E6025@warnes.net>

Hi All,

I've gotten a number of reports from users about gplots::heatmap.2 generating 'node stack overflow' errors.  As it turns out, these errors originate in stats:::plotNode, and are triggered when it is passed a dendrogram that is too deeply nested.

While increasing the stack size (which is a compile-time option for byte coded functions) can allow a particular instance to succeed, a better solution would be to modify stats:::plotNode to use a recursive, rather than iterative algorithm.

Anyone want to take this up as a programming challenge?   

-Greg


[Rd] Reimplement stats:::plotNode as iterative to avoid recursion limits?
Gregory R. Warnes