
Calculate the size of an R object when it is serialized
Source:R/serializedSize.R
serializedSize.Rd
This function goes through all the motions of serializing an object, but does nothing with the bytes other than to tally the total length.
Examples
object.size(mtcars)
#> 7208 bytes
serializedSize(mtcars)
#> [1] 3807