memory.size() reports the current or maximum memory allocation of
malloc function used in this version of R.
memory.limit() reports or increases the limit in force
on the total allocation.
stubs which report infinity (
Inf) with a warning.
1 2 3
Command-line flag --max-mem-size sets the maximum value of obtainable memory (including a very small amount of housekeeping overhead). This cannot exceed 3Gb on 32-bit Windows, and most versions are limited to 2Gb. The minimum is currently 32Mb.
If 32-bit R is run on most 64-bit versions of Windows the maximum value of obtainable memory is just under 4Gb. For a 64-bit versions of R under 64-bit Windows the limit is currently 8Tb.
Memory limits can only be increased.
Environment variable R_MAX_MEM_SIZE provides another way to specify the initial limit.
A number: On Windows, size in Mb (1048576 bytes), rounded to 0.01 Mb for
and rounded down for
On other platforms:
These functions exist on all platforms, but on non-Windows always report infinity as R does itself provide limits on memory allocation—the OS's own facilities can be used.
Memory-limits for other limits.
On Windows: The rw-FAQ for more details and references.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.