Add text to content collection (pipeable)
add_text.RdAdds a text block to a content collection. Can be used standalone or in a pipe. Supports viz_collection as first argument for seamless piping.
Examples
if (FALSE) { # \dontrun{
# Standalone
text_block <- add_text("# Welcome")
# Pipe with content
content <- create_content() %>%
add_text("## Introduction")
# Pipe directly from viz
content <- create_viz() %>%
add_viz(type = "histogram", x_var = "age") %>%
add_text("Analysis complete")
} # }