format_time_delta | R Documentation |
This is meant to address the following:
glue::glue("{as.difftime(1, units = 'days')}")
is "1"
glue::glue("{format(as.difftime(1, units = 'days'))}")
is "1 days"
time deltas for yearmonths and integers don't have units attached at all
format_time_delta(x, time_type)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.