OutputDataCurrency <- function(list_reactivevalue, i,
render_shiny = TRUE) {
if (render_shiny == TRUE) {
DT::renderDataTable(
datatable(list_reactivevalue[[i]],
rownames = FALSE,
options = list(
paging = FALSE,
searching = FALSE,
info = FALSE
)
) %>%
formatCurrency(
columns = names(list_reactivevalue[[i]])[sapply(list_reactivevalue[[i]], is.numeric)],
interval = 3,
mark = ",",
digits = 0,
currency = "",
dec.mark = "."
)
)
} else {
datatable(list_reactivevalue[[i]],
rownames = FALSE,
options = list(
paging = FALSE,
searching = FALSE,
info = FALSE
)
) %>%
formatCurrency(
columns = names(list_reactivevalue[[i]])[sapply(list_reactivevalue[[i]], is.numeric)],
interval = 3,
mark = ",",
digits = 0,
currency = "",
dec.mark = "."
)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.