Temporarily turn gctorture2 on.
with_gctorture2(new, code, wait = new, inhibit_release = FALSE)
[integer]
run GC every 'step' allocations.
[any]
Code to execute in the temporary environment
integer; number of allocations to wait before starting GC torture.
logical; do not release free objects for re-use: use with caution.
[any]
The results of the evaluation of the code
argument.
withr
for examples