how to clear r workspace code example Example 1: r clear console cat("\014") Example 2: how to clear rstudio environment click on the brush icon in environment tab