Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rmAll

Remove all objects


Description

Removes all objects from the workspace

Usage

rmAll(ask = TRUE)

Arguments

ask

Logical value indicating whether to ask user to confirm deletions. Default is TRUE

Details

The rmAll function provides a simple way of deleting all objects from the workspace. It is almost equivalent to the usual rm(list = objects()) command. The only difference that it requires the user to confirm the deletions first if ask = TRUE, after displaying a list of the current objects in the worspace. I find it personally convenient primarily because it involves fewer keystrokes, but more generally I find it useful for teaching purposes, since I usually want to show people how to clear the workspace before I have discussed named arguments to functions.

Value

Invisibly returns 0 if no deletions are made, 1 if at least one deletion is made.

Warning

This package is under development, and has been released only due to teaching constraints. Until this notice disappears from the help files, you should assume that everything in the package is subject to change. Backwards compatibility is NOT guaranteed. Functions may be deleted in future versions and new syntax may be inconsistent with earlier versions. For the moment at least, this package should be treated with extreme caution.

Author(s)

Daniel Navarro

See Also

Examples

# equivalent to rm(list = objects())
rmAll(ask = FALSE)

lsr

Companion to "Learning Statistics with R"

v0.5
GPL-3
Authors
Daniel Navarro
Initial release
2015-03-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.