A function to get the size of an object
get_object_size(object)
Arguments
object |
The target object. |
Value
A named list object that contains information on the
size of an object and the size unit.
Examples
res <- get_object_size(TRUE)
res$size
#> [1] 56
res$unit
#> [1] "bytes"