Skip to contents

A paste function that can be used with purrr::reduce to build up nested documentation items

Usage

paste_reduce_ul(x, y, sep = "\n - ")

Arguments

x

Character

y

Character

sep

Character. Default is a line break followed by a dash "\n - " to create an unordered list in markdown.

Value

Character

Examples


text_a <- "hello"
text_b <- "world"
paste_reduce_ul(text_a, text_b)
#> [1] "hello\n - world"