Learn R Programming

terra (version 1.8-5)

mem: 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)

free_RAM()

Value

free_RAM returns the amount of available RAM in kilobytes

Arguments

x

SpatRaster

n

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

Examples

Run this code
mem_info(rast())

free_RAM()

Run the code above in your browser using DataLab