Skip to content
Prev 153572 / 398500 Next

Enhancement request for bringToTop()

R-devel is the list for enhancement requests.
On Tue, 19 Aug 2008, Richard M. Heiberger wrote:

            
But not necessarily a windows() device.
Only if the default graphics device were windows().  It could be Cairo(), 
for example.

bringToTop() applies to a device number, which defaults to dev.cur() which 
defaults to 1.  Unlike par() it is not confined to the current device.

You can very easily program what you seem to want.  E.g.

if(.Device == "null device") windows() else bringToTop()

or perhaps

if(.Device != "windows") windows() else bringToTop()

Normally opening a device brings it to the top: for Rterm users 
it might not but then bringToTop() may not either.