[R] memory allocation in R

Mehmet Suzen msuzen at mango-solutions.com
Wed Nov 23 18:13:29 CET 2011


You may want to enable garbage collection on

gctorture(on = TRUE)

see: ?gctorture
     ?gcinfo
     ?object.size

>-----Original Message-----
>From: r-help-bounces at r-project.org
[mailto:r-help-bounces at r-project.org]
>On Behalf Of Marc Jekel
>Sent: 23 November 2011 15:42
>To: R-help at r-project.org
>Subject: [R] memory allocation in R
>
>Dear R community,
>
>I was observing a memory issue in R (latest 64bit R version running on
a
>win 7 64 bit system) that made me curious.
>
>I kept track of the memory f my PC allocated to R to calculate + keep
>several objects in the workspace. If I then save the workspace, close
R,
>and open the workspace again, less memory is allocated to keep the same
>set of variables into the workspace. For my case, the reduction in
>memory size was quite significant (approx. 2 GB).
>
>Does anyone know why R behaves in this manner - put differently: What
>does R keep in the workspace beyond the objects before I close R? Can I
>induce the reduction in memory without the need to close R?
>
>Thanks for an email!
>
>Marc
>
>______________________________________________
>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.
LEGAL NOTICE
This message is intended for the use o...{{dropped:10}}



More information about the R-help mailing list