I have run an R code on my local machine and it is sometimes successful and sometimes crashes my machine. In order to make this more successful I stood up a VDI with twice the RAM. When I run the code in this new environment it gives me the "Cannot allocate..." error every time in the same place even though I can sometimes get this to run on my local machine. Is there some specific way I need to set this up so that it takes advantage of all of the RAM? I ran memory.size()
and it shows 32 GB. Any advice helps.
I have already tried removing and reinstalling R and R-Studio. It seems like when I run it on my local machine it maxes out the memory but when I run it on the VDI it give up the second the memory gets too high. Not sure why that would be the case. The amount that it can't allocate is also less than 1 GB so I can't imagine why this machine can't handle it.