Learn R Programming

timeseriesdb (version 0.4.1)

rmAllBut: Delete all objects except for specific objects

Description

Run rm(list=ls()) but sparing some objects from being deleted. This function is particularly handy when you want to clear the memory but want to keep the the database connection object.

Usage

rmAllBut(but, env = .GlobalEnv, quiet = F)

Arguments

but

character vector of variables that should not be deleted.

env

environment to clean up. Defaults to .Globalenv

quiet

logical should functions print output? Defaults to falase.