with_gctorture2: Torture Garbage Collector

with_gctorture2R Documentation

Torture Garbage Collector

Description

Temporarily turn gctorture2 on.

Usage

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

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.

Value

[any]
The results of the evaluation of the code argument.

See Also

withr for examples


jimhester/withr documentation built on Nov. 2, 2024, 12:58 a.m.