R/utils.R

Defines functions create_indent

'%||%' <- function(x, y) {
  if (is.null(x)) {
    y
  } else {
    x
  }
}


create_indent <- function(depth) {
  paste0(rep("  ", depth), collapse = "")
}
coolbutuseless/minisvg documentation built on May 2, 2020, 3:15 a.m.