rm_tmp: Remove temporary objects from global environment

View source: R/rm_tmp.R

rm_tmpR Documentation

Remove temporary objects from global environment

Description

Clear all temporary variables, after displaying them and (by default) prompting user. By default, the user is prompted with a list of the objects before they are removed. It is assuemd that temporary variables end in ".tmp" or have single-letter names.

Usage

rm_tmp(..., envir = .GlobalEnv, ask = TRUE)

Arguments

...

optional arguments passed to grep via rm_grep.

envir

the name of the environment in which to make the changes. Defaults to the global environment, .GlobalEnv.

ask

logical, whether to prompt the user before removing objects. Defaults to TRUE.


mjdufort/miscHelpers documentation built on Feb. 4, 2024, 7:44 p.m.