Learn R Programming

utils (version 3.4.0)

memory.size: Report on Memory Allocation

Description

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.

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.

Value

Size in bytes: always Inf.

Details

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

See Also

Memory-limits for other limits.

Examples

Run this code
memory.size()
memory.size(TRUE)
memory.limit()

Run the code above in your browser using DataLab