[Rd] cairo device and pch="+"
Laurent Gautier
lgautier at gmail.com
Mon Jul 28 09:50:38 CEST 2008
Dear list,
I have spotted what could be a memory leak somewhere.
The example below shows how to quickly use up RAM on a linux machine
(the example is taylored for a 2Gb machine, change the size of the matrix m
is needed).
# ---
m <- matrix(rnorm(130), nrow=6000, 6)
X11(type="cairo")
pairs(m)
# --- here the trouble starts (monitor the memory usage as the plot goes).
pairs(m, pch="+")
# this does not seem to act on memory usage of the R process
dev.off()
gc()
# the only way to get back some memory is to kill the R process.
L.
More information about the R-devel
mailing list