memory.size

0th

Percentile

Report on Memory Allocation

memory.size and memory.limit are used to manage the total memory allocation on Windows. On other platforms these are stubs which report infinity with a warning.

Keywords
utilities
Usage
memory.size(max = FALSE)

memory.limit(size = NA)

Arguments
max
logical. If true the maximum amount of memory obtained from the OS is reported, otherwise the amount currently in use.
size
numeric. If NA report the memory size, otherwise request a new limit, in Mb.
Details

To restrict memory usage on a Unix-alike use the facilities of the shell used to launch R, e.g. limit or ulimit.

Value

Size in bytes: always Inf.

Note

These functions exist on other platforms but always report infinity as R does itself provide limits on memory allocation---the OS's own facilities can be used.

See Also

Memory-limits for other limits.

Aliases
  • memory.size
  • memory.limit
Examples
library(utils) memory.size() memory.size(TRUE) memory.limit()
Documentation reproduced from package utils, version 3.3.2, License: Part of R 3.3.2

Community examples

Looks like there are no examples yet.