How to clear the R environment

I think you're looking for

rm(list = ls())

See the rm docs for more info.

8 Likes