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

Arguments

x

SpatRaster

n

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

Value

free_RAM returns the amount of available RAM in kilobytes

Examples

mem_info(rast())
#> 
#> ------------------------
#> Memory (GB) 
#> ------------------------
#> check threshold : 1  (memmin)
#> available       : 10.69
#> allowed (60%)   : 6.41
#> needed (n=1)    : 0
#> ------------------------
#> proc in memory  : TRUE
#> nr chunks       : 1
#> ------------------------

free_RAM()
#> [1] 11206812