4

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?
IRTFM
  • 258,963
  • 21
  • 364
  • 487
tchoup
  • 971
  • 4
  • 11
  • What have you tried exactly? Both `memory.limit()` and `memory.size()` still work for me on the latest version of RStudio `2022.07.1 Build 554` . – OliverHennhoefer Sep 19 '22 at 16:54
  • @OliverHennhoefer on Mac, the doc says `Report on Memory Allocation (no longer supported)` – akrun Sep 19 '22 at 17:05

1 Answers1

1

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()
OliverHennhoefer
  • 677
  • 2
  • 8
  • 21