clear | R Documentation |
This function removes specific (or all by default) named objects from the global
environment. If used within a ProjectTemplate
project, then any variables
defined in the config$sticky_variables
will remain.
clear(..., keep = c(), force = FALSE)
... |
A sequence of character strings of the objects to
be removed from the global environment. If none given, then all items except
those in |
keep |
A character vector of variables that should remain in the global environment |
force |
If |
The variables kept and removed are reported
library('ProjectTemplate')
## Not run:
clear("x", "y", "z")
clear(keep="a")
clear()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.