r remove function from global environment code example Example: r remove all environment rm(list = ls())