Re: [R] Invalid device number in savePlot

From: Berton Gunter <gunter.berton_at_gene.com>
Date: Wed 06 Jul 2005 - 08:33:19 EST


I believe that this is probably related to a problem I sporadically experience in the Windows GUI where after I page up through several graphs in a windows() graphics window and page back down, the last graph is gone. As you said, a minor annoyance that is probably more of a pain to fix than it's worth. But you're not alone. :-)

FWIW: OS Windows 2000 V5 SP4
platform i386-pc-mingw32

arch     i386           
os       mingw32        
system   i386, mingw32  
status                  
major    2              
minor    1.0            
year     2005           
month    04             
day      18             

language R

Cheers,
Bert

> -----Original Message-----
> From: r-help-bounces@stat.math.ethz.ch
> [mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of
> OlsenN@pac.dfo-mpo.gc.ca
> Sent: Tuesday, July 05, 2005 3:17 PM
> To: r-help@stat.math.ethz.ch
> Subject: [R] Invalid device number in savePlot
>
> Hi,
> I recently encountered an error using the command "savePlot"
> when trying to
> save the third of 3 open graph windows. After successfully saving and
> closing the first two windows I receive an "Invalid device number in
> savePlot" error. The following is copied and pasted from an
> example session
> to illustrate the behaviour:
>
> > windows()
> > hist(rnorm(100))
> > windows()
> > hist(rnorm(100))
> > windows()
> > hist(rnorm(100))
> > savePlot("foo", "wmf")
> > dev.off()
> windows
> 2
> > savePlot("foo", "wmf")
> > dev.off()
> windows
> 3
> > savePlot("foo", "wmf")
> Error in savePlot("foo", "wmf") : invalid device number in savePlot
>
> If I check the current active device and manually set this
> parameter in
> savePlot, I still receive the error:
>
> > dev.cur()
> windows
> 3
> > savePlot("foo", "wmf", device=3)
> Error in savePlot("foo", "wmf", device = 3) :
> invalid device number in savePlot
>
> This behaviour is certainly not a critical issue for me so
> I'm not looking
> for a solution; I just thought I should report the issue in
> case it's a bug
> ... or perhaps I'm simply doing something stupid without realising it.
> Norm
>
> WinXP SP2
> platform i386-pc-mingw32
> arch i386
> os mingw32
> system i386, mingw32
> status
> major 2
> minor 1.1
> year 2005
> month 06
> day 20
> language R
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jul 06 08:36:41 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:16 EST