From lgautier at gmail.com  Mon Jul 28 09:50:38 2008
From: lgautier at gmail.com (Laurent Gautier)
Date: Mon, 28 Jul 2008 09:50:38 +0200
Subject: [Rd] cairo device and pch="+"
Message-ID: <27d1e6020807280050p2d9daf38tc9f1b5a5ab1314f0@mail.gmail.com>

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.



[Rd] cairo device and pch="+"
Laurent Gautier