R/lsos.R

Defines functions lsos

Documented in lsos

#' A Memory Object Browser Function
#' Shamelessly Copied from this stackoverflow.com post
#' http://stackoverflow.com/questions/1358003/tricks-to-manage-the-available-memory-in-an-r-session
#'

#' @param ... Passed to .ls.objects
#' @param n Number of objects to show
#' @keywords memory
#' @export
#' @examples
#' data(iris)
#' lsos()
###
# improved list of objects

# shorthand
lsos <- function(..., n=10) {
  lsObjects(..., order.by="Size", decreasing=TRUE, head=TRUE, n=n)
}
barrenWuffet/convPkg documentation built on Jan. 25, 2024, 9:59 p.m.