# much slower than purrr::flatten
flatten_preserve_parent_names <- function(x){
map2(x, names(x),
~ {if (is.list(.x) & length(.x) != 0) set_names(.x, paste(.y, names(.x), sep = "."))
else .x}) %>%
flatten()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.