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)free_RAM()
SpatRastaer
positive integer. The number of copies of x
that are needed
free_RAM returns the amount of available RAM in kilobytes
# NOT RUN {
mem_info(rast())
free_RAM()
# }
Run the code above in your browser using DataLab