Skip to content
Prev 313620 / 398513 Next

Rprof causing R to crash

Uwe,

I am unfortunately not able to upgrade to R 2.15.2 right now, but I have 
seen a similar problem with several older R versions. If you want to 
test with a shorter script, you can try the lines below. These provoke a 
crash from a fresh R session on my machine (R 2.15.1 Windows 7):

Rprof()
z = 1
for (i in 1:1e8) z = z+1/i

This runs without problems without the call to Rprof(). I was far from 
using all my memory with this call, but you could also check with a 
higher number of loops in case you can run these lines and it is somehow 
memory related. Just for comparison, I tried 1e9 loops after a call to 
Rprof() on one of our Linux servers (R 2.14.0) without any problems.

Jon
On 12-Dec-12 17:06, Uwe Ligges wrote: