'increase the memory allocation to R in windows10

I want to increase the allocated memory to 200GB in r. how should I do it? i tried using: memory.size(2000000). it didn't work. Any other suggestions, please. This is the memory stats

gc()

          
          used (Mb) gc trigger (Mb) max used (Mb)

Ncells  591932 31.7    1371827 73.3   638882 34.2

Vcells 1576624 12.1    8388608 64.0  1630857 12.5
r


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source