Sometimes running gc(reset = TRUE) once doesn't release all unused memory. TODO: move to ccissr package.

.gc(times = 3L)

Arguments

times

integer. Number of times to repeat gc(reset = TRUE)