R/objectSize.default.R

###########################################################################/**
# @RdocDefault objectSize
#
# @title "Gets the size of the object in bytes"
#
# \description{
#   @get "title".
#   This method is just a wrapper for @see "utils::object.size".
# }
#
# @synopsis
#
# \arguments{
#   \item{...}{Arguments passed to @see "utils::object.size".}
# }
#
# \value{
#  Returns an @integer.
# }
#
# @author
#
# \seealso{
#   Internally @see "utils::object.size".
# }
#
# \keyword{attribute}
# \keyword{utilities}
#*/###########################################################################
setMethodS3("objectSize", "default", function(...) {
  args <- list(...)
  args$.scannedEnvs <- NULL ## Used by objectSize() for environment
  do.call(object.size, args=args)
})
HenrikBengtsson/R.oo documentation built on Jan. 31, 2024, 9:06 a.m.