Description Usage Arguments See Also Examples
This locale object acts much like the locale object from the
readr package. It is used to provide direction to the
formatting methods for classes of each individual memeber of the
query-parameter list sent to serialize_list
.
1 2 3 4 | locale(logical_format = list(true = "true", false = "false"),
dtime_format = c("ms", "s", "minute", "hour", "day", "week"))
default_locale()
|
logical_format |
list, with two members: |
dtime_format |
character, indicating how to express time-differences.
Using |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library("lubridate")
query_params <- list(
keep = TRUE,
delay = dseconds(5)
)
serialize_list(query_params)
locale_new <- locale(
logical_format = list(true = "True", false = "False"),
dtime_format = "s"
)
serialize_list(query_params, locale = locale_new)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.