gluedown-package: gluedown: A package to format character vectors with...

gluedown-packageR Documentation

gluedown: A package to format character vectors with markdown.

Description

The gluedown package helps transition from R's powerful vectors to formatted markdown text. The functions use glue::glue() to wrap character vectors in valid markdown syntax. In combination with the knitr package, this allows users to directly print R vectors as formatted text for improved clarity and readability.

Glue wrappers

The ⁠md_*()⁠ functions return glue objects, which are returned using cat() by default. This allows users to both manipulate the formatted strings as they would with any character vector and still present the string to the user when an knitr chunk option is set to return code results 'asis'.

Other wrappers

The md_table() and md_convert() functions wrap around knitr::kable() and markdown::markdownToHTML() respectively. The later allows users to convert ⁠md_*()⁠ outputs to HTML fragments.

Author(s)

Maintainer: Kiernan Nicholls kiernann@protonmail.com

See Also

Useful links:


gluedown documentation built on Nov. 2, 2023, 5:48 p.m.