Converts raw byte counts into human-readable strings (e.g. "1.23 MB").
Examples
format_bytes(c(1024, 1048576, NA))
#> [1] "1 KB" "1 MB" NA
Converts raw byte counts into human-readable strings (e.g. "1.23 MB").
format_bytes(c(1024, 1048576, NA))
#> [1] "1 KB" "1 MB" NA