search for: getgraphicseventenv

Displaying 5 results from an estimated 5 matches for "getgraphicseventenv".

2011 Dec 16
2
Event handling in R
...LL value from one of the event handlers or for a user-interrupt for it to halt (as per the R manual). The only way that I've thought of to make this work is using setTimeLimit to kill the function after a set time - here's a (messy) example: setTimeLimit(cpu = 1) plot(0, 0) eventEnv <- getGraphicsEventEnv() setGraphicsEventHandlers(prompt = 'Test') while(TRUE) { err <- try(q <- getGraphicsEvent(), silent=TRUE) print(err) } # Not run setTimeLimit(cpu = Inf) but setTimeLimit doesn't seem to kill getGraphicsEvent() properly, as running this code just ends up with the repeated...
2020 Aug 09
0
Interactive graphics
...use of getGraphicsEvent(prompt = "Waiting for input", ???????????????? onMouseDown = NULL, onMouseMove = NULL, ???????????????? onMouseUp = NULL, onKeybd = NULL, ???????????????? onIdle = NULL, ???????????????? consolePrompt = prompt) setGraphicsEventHandlers(which = dev.cur(), ...) getGraphicsEventEnv(which = dev.cur()) setGraphicsEventEnv(which = dev.cur(), env) The problem rises when trying to get interrupts generated by pressing mouse buttons and, at the same time, interrupts coming from widgets. The idea is to locate points under a spectrum and draw a baseline. ?In my code the logical se...
2014 Jun 23
2
Unfixed bugs in latest R-patched
...ack of protection bugs in the equal and greater functions in sort.c. These bugs are also present in R-2.15.0 and R-3.1.0. o Fixed lack of protection bugs in the D function in deriv.c. These bugs are also present in R-2.15.0 and R-3.1.0. o Fixed argument error-checking bugs in getGraphicsEventEnv and setGraphicsEventEnv (also present in R-2.15.0 and R-3.1.0). o Fixed the following bug (also present in R-2.15.0 and R-3.0.2): x <- t(5) print (x %*% c(3,4)) print (crossprod(5,c(3,4))) The call of crossprod produced an error, whereas the...
2010 Oct 15
0
R 2.12.0 is released
...sed, sub-architecture: this is useful where different (sub-)architectures run on the same OS. ? The getGraphicsEvent() mechanism now allows multiple windows to return graphics events, through the new functions setGraphicsEventHandlers(), setGraphicsEventEnv(), and getGraphicsEventEnv(). (Currently implemented in the windows() and X11() devices.) ? tools::texi2dvi() gains an index argument, mainly for use by R CMD Rd2pdf. It avoids the use of texindy by texinfo's texi2dvi >= 1.157, since that does not emulate 'makeindex' well enough...
2010 Oct 15
0
R 2.12.0 is released
...sed, sub-architecture: this is useful where different (sub-)architectures run on the same OS. ? The getGraphicsEvent() mechanism now allows multiple windows to return graphics events, through the new functions setGraphicsEventHandlers(), setGraphicsEventEnv(), and getGraphicsEventEnv(). (Currently implemented in the windows() and X11() devices.) ? tools::texi2dvi() gains an index argument, mainly for use by R CMD Rd2pdf. It avoids the use of texindy by texinfo's texi2dvi >= 1.157, since that does not emulate 'makeindex' well enough...