clean: Remove Objects from Memory

View source: R/functions.R

cleanR Documentation

Remove Objects from Memory

Description

Clean the memory. Delete all the objects in memory and a garbage collection takes place.

Usage

clean(envir = globalenv(), n = 2)

Arguments

envir

The currently active environment; by default It is the gloval environment.

n

Number of garbage collection repetitions; by default n = 2.

Examples

## Run to clean the environment
clean()
clean(n=2)

MoTBFs documentation built on Oct. 6, 2026, 1:06 a.m.