Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to reduce or clear the size of R's global string cache?

Tags:

r

This is related to my previous question freeing up memory in R

and was wondering if it was possible to reduce or clear the size of R's global string cache?...I have heard that it can only go up?

If it is possible, how do you do it?

Thx

like image 643
h.l.m Avatar asked Jan 25 '13 17:01

h.l.m


1 Answers

I don't believe that is true. It looks like the garbage collector code marks unused CHARSXPs (the individual cached components of character vectors) and removes them.

like image 90
hadley Avatar answered Nov 03 '22 10:11

hadley