Skip to content

R console closes on its own

2 messages · Duncan Murdoch

#
On 2/20/2008 7:44 PM, Judith Flores wrote:
I can reproduce a crash using the following code:

for (i in 1:100) {
windows()
plot(1:100)
}

When R opens too many graphics windows, it is running out of memory, but 
not failing gracefully.  It should be easy to fix.

The workaround in the short term is not to accumulate open graphics 
windows; close them when you're done.  This code runs without error:

for (i in 1:100) {
windows()
plot(1:100)
dev.off()
}

Duncan Murdoch
#
On 3/4/2008 12:21 PM, Duncan Murdoch wrote:
I think this has already been fixed in R-patched and R-devel.

Duncan Murdoch