From hb at maths.lth.se  Fri Jul 18 19:32:16 2003
From: hb at maths.lth.se (hb@maths.lth.se)
Date: Fri Jul 18 18:32:06 2003
Subject: [Rd] bringToTop() when some windows been closed (PR#3512)
Message-ID: <200307181632.h6IGWGJH029985@pubhealth.ku.dk>

Full_Name: Henrik Bengtsson
Version: R v1.7.1
OS: WinXP Pro
Submission from: (NULL) (130.235.2.229)


bringToTop() does not work if some windows has been closed. Example:

graphics.off()
x11()         # opens Figure 2
x11()         # opens Figure 3
dev.set(2) 
dev.off()     # closes Figure 2
bringToTop(3) # Gives an error
# Error in bringToTop(as.integer(which)) : invalid value of `which'
x11()         # opens Figure 2 again
bringToTop(3) # Works fine

It seems that *all* preceeding figures k=2,3,..,K-1 have to exist to be able to
bringToTop() figure K.

Cheers

Henrik Bengtsson


[Rd] bringToTop() when some windows been closed (PR#3512)
hb@maths.lth.se