Re: [R] Cleaning up memory in R

From: Anh Tran <popophobia_at_gmail.com>
Date: Wed, 14 May 2008 13:16:07 -0700

Sorry, it's the stupid mistake on my part. Please forgive that question. I have to unload the variable first.

On Wed, May 14, 2008 at 1:12 PM, Duncan Murdoch <murdoch_at_stats.uwo.ca> wrote:

> On 5/14/2008 3:59 PM, Anh Tran wrote:
>
>> I'm trying to work on a large dataset and after each segment of run, I
>> need
>> a command to flush the memory. I tried gc() and rm(list=ls()) but they
>> don't
>> seem to help. gc() does not do anything beside showing the memory usage.
>>
>
> How do you know it does nothing? R won't normally release memory to the
> OS, but it is still freed to be reused internally in R.
>
> On the other hand, if you still have references to the variables, then gc()
> really will do nothing.
>
> Duncan Murdoch
>
>
> I'm using the package BSgenome from BioC.
>>
>> Thanks a bunch
>>
>>
>

-- 
Regards,
Anh Tran

	[[alternative HTML version deleted]]

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 14 May 2008 - 23:41:02 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 15 May 2008 - 00:30:38 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive