Skip to content
Prev 8860 / 12125 Next

[R-pkg-devel] Best current way to hook into the event loop?

On 02/02/2023 7:24 p.m., Simon Urbanek wrote:
Thanks.  Yours appears to have the advantage of being able to run R code 
in the middle of a function call if that function calls R_ProcessEvents, 
as Sys.sleep() does.  I wonder why "later" didn't support that?

What I was hoping for would be something like R_PolledEvents, but it 
should work on all systems, not just Unix-alikes.  My goal is to 
simplify rgl.  Part of this means I'd like to minimize the system 
dependence, since I no longer have easy access to a Windows machine for 
testing.

Duncan