Tricks to manage the available memory in an R session

前端 未结 27 1541
情深已故
情深已故 2020-11-22 01:23

What tricks do people use to manage the available memory of an interactive R session? I use the functions below [based on postings by Petr Pikal and David Hinds to the r-he

27条回答
  •  悲哀的现实
    2020-11-22 01:42

    If you really want to avoid the leaks, you should avoid creating any big objects in the global environment.

    What I usually do is to have a function that does the job and returns NULL — all data is read and manipulated in this function or others that it calls.

提交回复
热议问题