R/rm_tmp.R

Defines functions rm_tmp

Documented in rm_tmp

#' Remove temporary objects from global environment
#'
#' 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.
#' @param ... optional arguments passed to \code{grep} via \code{rm_grep}.
#' @param ask logical, whether to prompt the user before removing objects. Defaults to TRUE.
#' @export
#' @usage \code{rm_tmp(..., ask=TRUE)}
rm_tmp <- function(..., ask=TRUE) rm_grep("^[a-zA-Z]$|\\.tmp", ask=ask, ...)
mjdufort/miscHelpers documentation built on Sept. 24, 2018, 7:09 p.m.