mem: Memory available and needed

memR Documentation

Memory available and needed

Description

mem_info prints the amount of RAM that is required and available to process a SpatRaster.

free_RAM returns the amount of RAM that is available

Usage

mem_info(x, n=1, print=TRUE)

free_RAM()

Arguments

x

SpatRaster

n

positive integer. The number of copies of x that are needed

print

logical. print memory info?

Value

free_RAM returns the amount of available RAM in kilobytes

Examples

mem_info(rast())

free_RAM()

rspatial/terra documentation built on Feb. 9, 2025, 4:06 p.m.