.shiny_toJSON | R Documentation |
This is an unexported function in shiny, and has been directly copy/pasted (other than the name and documentation). This function formats things in the way shiny's JS functions expect.
.shiny_toJSON(
x,
...,
dataframe = "columns",
null = "null",
na = "null",
auto_unbox = TRUE,
digits = getOption("shiny.json.digits", 16),
use_signif = TRUE,
force = TRUE,
POSIXt = "ISO8601",
UTC = TRUE,
rownames = FALSE,
keep_vec_names = TRUE,
strict_atomic = TRUE
)
x |
the object to be encoded |
... |
Arguments passed on to
|
dataframe |
how to encode data.frame objects: must be one of 'rows', 'columns' or 'values' |
null |
how to encode NULL values within a list: must be one of 'null' or 'list' |
na |
how to print NA values: must be one of 'null' or 'string'. Defaults are class specific |
auto_unbox |
automatically |
digits |
max number of decimal digits to print for numeric values. Use |
use_signif |
Passed on to a print method. |
force |
unclass/skip objects of classes with no defined JSON mapping |
POSIXt |
how to encode POSIXt (datetime) objects: must be one of 'string', 'ISO8601', 'epoch' or 'mongo' |
UTC |
Passed on to a print method. |
rownames |
Passed on to a print method. |
keep_vec_names |
Passed on to a print method. |
strict_atomic |
Used to deal with atomic vectors and/or unboxing. |
Jsonified text.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.