clean_gc: Using gc multiple times

View source: R/clean_gc.R

clean_gcR Documentation

Using gc multiple times

Description

Cleans the memory by using gc() numerous times.

Usage

clean_gc(num_gc = 100, threshold = 0.01, verbose = FALSE)

Arguments

num_gc

a numeric that indicates the maximum number of iterations.

threshold

a numeric with the percentage difference. If the change in memory size falls below the threshold, the function stops.

verbose

a boolean. If TRUE, information about the run is printed.

Details

The function calls gc() until the difference in memory size falls below the threshold.

Author(s)

Jakob Gepp

Examples

clean_gc(verbose = TRUE)


STATWORX/helfRlein documentation built on Feb. 12, 2024, 2:21 a.m.