#' Removes all objects from specified environment
#'
#' Removes all objects from specified environment. Default is global environment \code{.GlobalEnv}.
#'
#' @param env Environment from which objects will be removed. Default is global environment \code{.GlobalEnv}.
#' @export
rmall <- function(env = .GlobalEnv){
rm(list = ls(envir=env), envir=env)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.