Memory available and needed
mem.Rd
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
Examples
mem_info(rast())
#>
#> ------------------------
#> Memory (GB)
#> ------------------------
#> check threshold : 1 (memmin)
#> available : 3.21
#> allowed (50%) : 1.6
#> needed (n=1) : 0
#> ------------------------
#> proc in memory : TRUE
#> nr chunks : 1
#> ------------------------
free_RAM()
#> [1] 3364480