gluedown-package | R Documentation |
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.
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'
.
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.
Maintainer: Kiernan Nicholls k5cents@gmail.com (ORCID) [copyright holder]
Useful links:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.