#' @title Clean workspace
#' @description Alias/shorcut for "rm(list = ls())" followed by "gc(reset = TRUE)". It removes all objects and frees memory used when storing them.
#' @return Workspace freely from objects and unused memory.
#' @author CainĂ£ Max Couto-Silva
#' @export
clean <- function() {
rm(list = ls(pos = 1), pos = 1)
invisible(gc(reset = TRUE))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.