"memory.limit() is no longer supported" - work around?

Viewed 31

I am trying to increase memory in Rstudio. Previously, I used memory.limit(), but I am now getting the warning message that this is no longer supported. According to this post, memory.limit() and memory.size() are now "stubs on Windows (as on Unix-alikes)." Two questions:

  1. What does "are now on stubs" mean?
  2. What alternative do I have for increasing the memory limit?
1 Answers

Seems like the workflow on Mac/Unix differs to non-Windows platforms:

  1. (Open the terminal)
  2. Open the .Renviron file
  3. Add/Change the parameter R_MAX_VSIZE=100Gb

This seems to be also discussed in this thread

Looks like the whole process can be done through R as well:

library(usethis) 
usethis::edit_r_environ()
Related