Memory available and needed
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
mem_info(x, n=1, print=TRUE) free_RAM()
x
: SpatRastern
: positive integer. The number of copies of x
that are neededprint
: logical. print memory info?free_RAM returns the amount of available RAM in kilobytes
mem_info(rast()) free_RAM()
Useful links