I know it's easily possible to increase the memory limit of R using the command memory.limit(size=N). If I try to decrease it to a value smaller than N, for obvious reasons I get the error:
Warning message:
In memory.limit(size = 10) : cannot decrease memory limit: ignored
Is there a way to decrease the memory limit upfront running code (or as first command)? I want to implement this for training purposes (how to deal with memory issues?).