R/rmDotUnderline.R

Defines functions rmDotUnderline

Documented in rmDotUnderline

#' Remove objects that start with "dot" "underscore"
#'
#' A quick wrapper for removing a objects with specials names,
#' `"._xxx"`.
#'
#' @param envir The environment from with to rm objects, defaults to
#'   `.GlobalEnv`
#' @export
rmDotUnderline <- function(envir = .GlobalEnv)
  rm(list = ls(all.names = TRUE, envir = envir)[startsWith(ls(all.names = TRUE, envir = envir), "._")],
     envir = envir)
PredictiveEcology/pedev documentation built on Nov. 30, 2024, 1:18 a.m.