Skip to content

Memory issue?

3 messages · Daniel Brewer, Paul Hiemstra, Ubuntu Diego

#
I have a script that sometimes produces the following error:

Error in assign(".target", method at target, envir = envir) :
  formal argument "envir" matched by multiple actual arguments

Do you think this is a memory issue?  I don't know what else it could be
as it doesn't always occur even if the script is run with exactly the
same data.

Does rm() actually free up memory?

Thanks

Dan
#
Daniel Brewer wrote:
Hi,

There are multiple threads on this subject on the R-help list, googling 
for "formal argument matched by mutiple actual arguments" lead me to:

http://tolstoy.newcastle.edu.au/R/help/05/08/10698.html

So this is probably not a memory issue. Freeing up memory can be done 
using gc().

cheers and hth,
Paul
1 day later
#
I had similar issues with memory occupancy. You should explicitly call
gc() to call the garbage collector (free memory routine) after you do
rm() of the big objects. 

D.