mem function

Memory available and needed

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()

Arguments

  • x: SpatRaster
  • n: positive integer. The number of copies of x that are needed
  • print: logical. print memory info?

Returns

free_RAM returns the amount of available RAM in kilobytes

Examples

mem_info(rast()) free_RAM()
  • Maintainer: Robert J. Hijmans
  • License: GPL (>= 3)
  • Last published: 2025-02-26