format_bytes | R Documentation |
Call the S3 method format.object_size()
to format numbers of bytes.
format_bytes(x, units = "auto", ...)
x |
A numeric vector (each element represents a number of bytes). |
units , ... |
Passed to |
A character vector.
xfun::format_bytes(c(1, 1024, 2000, 1e+06, 2e+08))
xfun::format_bytes(c(1, 1024, 2000, 1e+06, 2e+08), units = "KB")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.