Use epoxy
chunks for extra-strength inline syntax. Just
library(epoxy)
in your R Markdown or
Quarto document to get started. All epoxy chunks
make it easy to transform values in place with a {cli}
-inspired inline
syntax described in ?epoxy_transform_inline
.
The same functions that power epoxy chunks are availble in three flavors:
epoxy()
for markdown and general purpose outputs
epoxy_html()
for HTML outputs, with added support for HTML
templating (see ?epoxy_transform_html
)
epoxy_latex()
for LaTeX reports
These functions are accompanied by a robust system for chained
glue-transformers powered by epoxy_transform()
.
ui_epoxy_html()
makes it easy to update text or HTML dynamically,
anywhere in your Shiny app’s UI. For more
complicated situations, ui_epoxy_mustache()
lets you turn any Shiny UI
into a template that leverages the Mustache templating
language.
There’s a whole lot more that epoxy can do!
Get up and running with epoxy in reports or Shiny apps.
Function reference with usage and examples.
Longer posts and tutorials about using epoxy in your reports and apps.
You can install epoxy from CRAN:
install.packages("epoxy")
You can install the latest development version of epoxy with remotes
# install.packages("remotes")
remotes::install_github("gadenbuie/epoxy")
or from gadenbuie.r-universe.dev.
options(repos = c(
gadenbuie = "https://gadenbuie.r-universe.dev/",
getOption("repos")
))
install.packages("epoxy")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.