From twoutopias at gmail.com  Thu Nov 22 22:25:03 2007
From: twoutopias at gmail.com (twoutopias at gmail.com)
Date: Thu, 22 Nov 2007 22:25:03 +0100 (CET)
Subject: [Rd] bug in getGraphicsEvent (PR#10453)
Message-ID: <20071122212503.ABE56283460C@mail.pubhealth.ku.dk>

Full_Name: Seth Roberts
Version: 2.6.0
OS: Windows XP
Submission from: (NULL) (71.139.162.236)


Using getGraphicsEvent produces stack imbalance warnings. This started after I
installed 2.6.0; it did not happen with 2.5.1. 

Running the example given in the user manual (retrieved via ?getGraphicsEvent)
produces the following errors:

Key <2>
Key <1>
Buttons  0  at  0.991317 0.9942029 
Warning: stack imbalance in 'getGraphicsEvent', 7 then 17
Warning: stack imbalance in '.Internal', 6 then 16
[1] "Done"

I wrote the following program:

function () 
{plot(1:5)
getGraphicsEvent(onKeybd=get.key)
}

get.key
function(key){key}

running the program, switching to the graphics window and typing "4" produced:

Waiting for input
Warning: stack imbalance in 'getGraphicsEvent', 13 then 14
Warning: stack imbalance in '.Internal', 12 then 13
Warning: stack imbalance in '{', 6 then 7
[1] "4"



[Rd] bug in getGraphicsEvent (PR#10453)
twoutopias at gmail.com