Converts file sizes from bytes to human-readable format with appropriate units
See also
Other utilities:
create_summary_table(),
example_data(),
export_h5ad(),
format_with_commas(),
gene_report(),
strip_plotly()
Examples
format_file_size(c(1024, 1048576, 5000877192))
#> [1] "1.0 KB" "1.0 MB" "4.7 GB"
# Returns: "1.0 KB", "1.0 MB", "4.7 GB"