Tricks to manage the available memory in an R session

前端 未结 27 2136
情深已故
情深已故 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 02:05

    Ensure you record your work in a reproducible script. From time-to-time, reopen R, then source() your script. You'll clean out anything you're no longer using, and as an added benefit will have tested your code.

提交回复
热议问题