Learn R Programming

withr (version 3.0.1)

with_gctorture2: Torture Garbage Collector

Description

Temporarily turn gctorture2 on.

Usage

with_gctorture2(new, code, wait = new, inhibit_release = FALSE)

Value

[any]
The results of the evaluation of the code

argument.

Arguments

new

[integer]
run GC every 'step' allocations.

code

[any]
Code to execute in the temporary environment

wait

integer; number of allocations to wait before starting GC torture.

inhibit_release

logical; do not release free objects for re-use: use with caution.

See Also

withr for examples