Skip to content

error: too many open devices

3 messages · Kate Walton, Peter Dalgaard, John Fox

#
Hi,

R stops running my code and gives me the following error message:

Error in win.graph(width = 8.5, height = 11) :
        too many open devices

My code calls for R to produce over 100 graphs, but it stops running and gives
me this error message after about 60. I'm sure there's an easy fix. Anyone
know?

Many thanks in advance, Kate
#
Kate Walton <walton at cyrus.psych.uiuc.edu> writes:
Presumably you need to call dev.off() after you are through using a
device?
#
Dear Kate,

Open a graphics window with windows(). From the history menu, turn recording
on. You should be able to record 100 graphs, using the Page Up and Down keys
to move through the graph history.

I hope this helps,
 John 

--------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario
Canada L8S 4M4
905-525-9140x23604
http://socserv.mcmaster.ca/jfox 
--------------------------------