R/mergeDocumentation.R

Defines functions mergeDocumentation

mergeDocumentation <- function(x) {
  if (!anyDuplicated(names(x))) {
    return(x)
  }
  out <- list()
  for (i in unique(names(x))) {
    out[[i]] <- unlist(x[names(x) == i], use.names = FALSE)
  }
  return(out)
}
pik-piam/goxygen documentation built on Feb. 1, 2024, 5:35 p.m.