object_size: Convenience function to find size of R object.

View source: R/object_size.R

object_sizeR Documentation

Convenience function to find size of R object.

Description

object_size is a simple wrapper for object.size and format which allows for quick return of an object's size in memory.

Usage

object_size(x, unit = "Mb", as_fs_bytes = FALSE)

Arguments

x

An R object.

unit

Unit of size. See object.size for options. Defaults to "Mb" for megabytes.

as_fs_bytes

Should the return be in fs's bytes data type? If TRUE, unit is ignored.

Value

Character or fs_bytes vector with length of 1.

Author(s)

Stuart K. Grange


skgrange/threadr documentation built on June 30, 2024, 10:26 p.m.