Print bytes in nice human-readable format
hbytes.Rd
Basically format.object_size from utils, but vectorized and includes .0
Examples
hbytes(12300)
#> [1] "12.0 Kb"
hbytes(c(12300, 12345))
#> [1] "12.0 Kb" "12.1 Kb"
hbytes.Rd
Basically format.object_size from utils, but vectorized and includes .0
hbytes(12300)
#> [1] "12.0 Kb"
hbytes(c(12300, 12345))
#> [1] "12.0 Kb" "12.1 Kb"