clear: Clean Global Environment, Plots and Console

Description Usage Details Author(s) Examples

View source: R/clear.R

Description

clear() cleans three R workspaces: Global Environment, Plots and R Console.

Usage

1

Details

clear() removes all objects from Global Environment, clear plots and R Console (the same as pressing Ctrl + L). It does not require any arguments.

This can be used as an initial command line to clear the workspace as follows:

1
2
## Clear the workspace
clear()

clear does not interrupt logging process of ilog.

Author(s)

For any feedback, please contact Myo Minn Oo via:

Email: dr.myominnoo@gmail.com

Website: https://myominnoo.github.io/

Examples

1
2
3
4
5
6
7
8
# create x by generating 100 random values
x <- rnorm(100)

# plotting x
plot(x)

# calling clear to clean workspace
clear()

myominnoo/mStatsLite documentation built on May 1, 2020, 11:41 a.m.