Creates a dashboard automation script and writes it to crunch/{name}.
Usage
crunch_generate_dashboard(
crunch_dashboard_spec,
name = "Dashboard",
filters = NULL,
overwrite = FALSE,
open = rlang::is_interactive()
)Examples
if (FALSE) { # \dontrun{
crunch_dictionary <- crunch_get_dictionary()
crunch_dashboard_spec <- crunch_dictionary |>
filter(!is.na(folder)) |>
rowwise() |>
mutate(
tile_code = as.character(crunch_generate_tile(
.data$alias, .data$name, .data$type, .data$description
))
) |>
ungroup() |>
select(folder, tile_code)
crunch_generate_dashboard(crunch_dashboard_spec, name = "Dashboard")
runCrunchAutomation(crunch_connect(), readr::read_lines("crunch/Dashboard"))
} # }