Increasing (or decreasing) the memory available to R processes -
i increase (or decrease) amount of memory available r. methods achieving this?
from:
http://gking.harvard.edu/zelig/docs/how_do_i2.html (mirror)
windows users may error r has run out of memory.
if have r installed , subsequently install more ram, may have reinstall r in order take advantage of additional capacity.
you may set amount of available memory manually. close r, right-click on r program icon (the icon on desktop or in programs directory). select ``properties'', , select ``shortcut'' tab. ``target'' field , after closing quotes around location of r executible, add
--max-mem-size=500m
as shown in figure below. may increase value 2gb or maximum amount of physical ram have installed.
if error r cannot allocate vector of length x, close out of r , add following line ``target'' field:
--max-vsize=500m
or appropriate. can check see how memory r has available typing @ r prompt
memory.limit() which gives amount of available memory in mb. in previous versions of r needed use: round(memory.limit()/2^20, 2)
Comments
Post a Comment