[R] removing of memory - optim()?

2006-03-08 Thread Marcel Prokopczuk
Dear all,

I have the following problem: I am using Windows XP as OS and have a R
program which uses optim() in a loop. Although I overwrite every variable in
the loop the memory R is using is increasing until my system breaks down
because the swap file is getting just to big. I suspect that optim() is
creating some variables which are not deleted automatically. So I tried to
do the following: every 10th loop or so, I save the variables I want to
keep, delete the memory with rm(list=ls(all=TRUE)), and load back the data I
saved before. But this is also not working. rm(list=ls(all=TRUE)) does not
delete everything (I can see in the Task Manager of Windows that the memory
occupied by the Rgui process stays huge).

Does anybody had similar problems and/or know how to solve it. Thanks in
advance for your help.

Marcel

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] multidimensional integration

2005-09-28 Thread Marcel Prokopczuk
dear all,

i have the following problem: i want to integrate a two-dimensional
function. unfortunately R crashes when i try to use adapt() and i get a nice
windows message with some hex-code.
do anybody of you knows how to avoid this or knows another more stable
function than adapt()

thanks a lot

marcel

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html