gctorture
Force frequent garbage collections

Description

Helps detect memory allocation problems earlier by running frequent garbage collections.

Usage

gctorture(on = TRUE)
gctorture2(step, wait = step, inhibit_release = FALSE)

Arguments

on a logical value with a default of TRUE. It can be a value that can be coerced to logical.

Details

Note that setting gctorture to run can slow code execution considerably.
gctorture2 ignores all of its arguments and does nothing except to warn that is has not been implemented. It always returns the integer zero. It is present only because a few packages refer to it in their test suites.
Value
returns a logical value: the previous gctorture() setting.
See Also
gc, gc.time, mem.limits.
Examples
# Get the current value of the \code{gctorture()} setting:
gctorture(NA)
# Turn gctorture off:
gctorture(FALSE)
# Turn gctorture on:
gctorture(TRUE)

Package base version 6.1.1-7
Package Index