R/utils.R

Defines functions recursiveModify

recursiveModify <- function(x, modify = identity, when = function(x) TRUE) {
  purrr::modify_tree(
    x,
    pre = function(el) {
      if (!is.null(el) && when(el)) {
        return(modify(el))
      }
      el
    },
    is_node = is.list
  )
}

Try the shiny.fluent package in your browser

Any scripts or data that you put into this service are public.

shiny.fluent documentation built on May 29, 2024, 5:45 a.m.