View source: R/clear_workspace.R
clear_workspace | R Documentation |
clear_workspace
resets your R-environment without de-attaching
your packages. It just removes your variables and functions.
clear_workspace()
# make some new variables in your environment, then clear your whole environment
## Not run:
> var <- 1
> name <- c("Bob")
> ls()
"var" "name"
> clear_workspace()
> ls()
character(0)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.