Created
September 16, 2016 06:02
-
-
Save MilesMcBain/be5b29fc0b823014e548945619130e7c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Remove things in the global environment with name like a string you supply. | |
#Like is in the regex match sense, so if you make a slip blowing away most of your environment is possibility. | |
rm_like <- function(pattern = character()) { | |
rm( list = grep(pattern = pattern, | |
x=ls(envir = globalenv()), | |
value = TRUE), | |
envir = globalenv() | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment