dmurdoch / rgl

rgl is a 3D visualization system based on OpenGL. It provides a medium to high level interface for use in R, currently modelled on classic R graphics, with extensions to allow for interaction.
https://dmurdoch.github.io/rgl/
GNU General Public License v2.0
85 stars 20 forks source link

auto closing #313

Closed rb643 closed 1 year ago

rb643 commented 1 year ago

I'm aware all the rgl. function are now deprecated but was wondering if there is an alternative to rgl.cur() and rgl.close() as I found those quite useful in cleaning up all active open windows.

dmurdoch commented 1 year ago

cur3d is identical to rgl.cur. close3d is not identical, but is a replacement for rgl.close.

rb643 commented 1 year ago

Thanks! This solves my issue so just posting this here for future reference in case its useful for others:

while (length(rgl::rgl.dev.list())>0 ) { rgl::close3d() }