This function is modified copy of the utils:::format.object_size function which is not exported. The main difference is that it returns values.
1 | format_object_size(x, units = "b", standard = "auto", digits = 1L, ...)
|
x |
a number |
units |
a unit |
standard |
a standard |
digits |
number of digits |
... |
anything else |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.