Keep Your Environment Clean

Provides a set of functions, which facilitates removing objects from an environment. It allows to delete objects specified with regular expression or with other conditions (e.g. if object is numeric), using one function call.


eponge

Keep your environment clean

Documentation Travis buildstatus AppVeyor buildstatus Buy hexstciker

A small utility which makes selective objects removing easier.

Installation

# install.packages("devtools")
devtools::install_github("krzjoa/eponge")

Usage

Many times we can meet a situation, when we want to clean our environment selectively. Suppose we just wrote a couple of functions, which have the same names as the ones existing in already attached libraries.

filter <- function(x, id){
  x %>% 
  filter(ID == id)
}

cars <- 1:5

eponge::erase_masking()

Sometimes, we may want to tidy our messy enivironment: we have objects we would like to keep, while in the same time there are many temporary objects created during the exploration.

cars.2 <- cars
cars.2$speed <- cars.2$speed + 2

new.iris <- iris[1:20, ]

add_two <- function(x) x + 2

# Normally, we don't have to pass envir argument, because it indicates global environment by default
eponge::erase_data(envir = environment())

Package name

Package was originally named sponge, but it was changed in order to avoid name conflict with BioConductor package SPONGE. The current name comes from its French equivalent, éponge (e.pɔ̃ʒ).

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("eponge")

0.1.0 by Krzysztof Joachimiak, 7 years ago


https://github.com/krzjoa/eponge, https://krzjoa.github.io/eponge/


Report a bug at https://github.com/krzjoa/eponge/issues


Browse source code at https://github.com/cran/eponge


Authors: Krzysztof Joachimiak [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports rlang

Suggests testthat


See at CRAN