rm_ws: Completely or Selectively Clear the R Workspace of Objects

Description Usage Arguments Details Value Author(s)

Description

This is a convenience function for cleaning the R workspace; either all objects can be removed, or only a subset of them.

Usage

1
rm_ws(..., exclude, verbose=FALSE, reqmatch=TRUE)

Arguments

...

Arguments to be passed directly to rm.

exclude

Boolean; should any objects be retained when the workspace is cleared?

verbose

Boolean; should output be written to console listing the deleted/retained objects?

reqmatch

Boolean; should rm_ws require that at least one exclusion matches?

Details

If exclusions are specified, but none are matched, the function will abort for safety reasons. This is intended to prevent the user from inadvertently clearing the workspace using stale or poorly formatted arguments.

Value

None

Author(s)

Ryan Kyle, ryan.kyle@mail.mcgill.ca


rpkyle/cscmisc documentation built on May 13, 2019, 12:06 p.m.