R/list_objects.R

Defines functions list_objects

Documented in list_objects

#' Create List of All Objects in the Global Environment
#'
#' This function returns a list of all objects currently stored in the global environemnt. Useful for saving the output of an analysis in one go.
#'
#' @return A list object.
#' @examples
#' list_objects()
#' @export

list_objects <- function(){
  mget(
    ls(envir = .GlobalEnv),
    envir = .GlobalEnv
  )
}
jackobailey/jbmisc documentation built on Dec. 14, 2021, 12:11 a.m.