How to remove (almost) everything from the work environment

rm(list=ls())

This command will clear the variables and the loaded libraries. Almost.

If we run ?rm we get the following info:

## remove (almost) everything in the working environment.
## You will get no warning, so don't do this unless you are really sure.
rm(list = ls())

 

 

Comments are closed.