All Projects → gadenbuie → epoxy

gadenbuie / epoxy

Licence: Unknown, MIT licenses found Licenses found Unknown LICENSE MIT LICENSE.md
Extra-strength glue engines for R Markdown and Quarto

Programming Languages

r
7636 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to epoxy

flexpivot
Simple frequency table
Stars: ✭ 19 (-86.52%)
Mutual labels:  shiny, rmarkdown
Gfonts
🔤 Offline Google Fonts for rmarkdown and shiny
Stars: ✭ 85 (-39.72%)
Mutual labels:  shiny, rmarkdown
workshops-setup cloud analytics machine
Tips and Tricks to setup a cloud machine for Analytics and Data Science with R, RStudio and Shiny Servers, Python and JupyterLab
Stars: ✭ 12 (-91.49%)
Mutual labels:  shiny, rmarkdown
bubblyr
☁️ ☁️ ☁️ Beautiful Bubbles in Shiny and RMarkdown Backgrounds
Stars: ✭ 16 (-88.65%)
Mutual labels:  shiny, rmarkdown
grillade
Grid sytem for shiny apps or rmarkdown and to create htmlwidgets matrix
Stars: ✭ 16 (-88.65%)
Mutual labels:  shiny, rmarkdown
signals-and-systems
Interactive visualizations for Dr. Richard Baraniuk's open-source "Signals and Systems" textbook. R / Shiny.
Stars: ✭ 31 (-78.01%)
Mutual labels:  shiny, rmarkdown
Shufflecards
✨ Create magical grid layouts in Shiny & Markdown
Stars: ✭ 76 (-46.1%)
Mutual labels:  shiny, rmarkdown
Knitr Book
Dynamic Documents with R and knitr
Stars: ✭ 215 (+52.48%)
Mutual labels:  rmarkdown, knitr
Bslib
Tools for theming shiny and rmarkdown from R via Bootstrap (3 or 4) Sass.
Stars: ✭ 197 (+39.72%)
Mutual labels:  shiny, rmarkdown
Bsplus
Shiny and R Markdown addons to Bootstrap 3
Stars: ✭ 120 (-14.89%)
Mutual labels:  shiny, rmarkdown
fabricerin
Create Easily Canvas in Shiny and RMarkdown Documents
Stars: ✭ 52 (-63.12%)
Mutual labels:  shiny, rmarkdown
r-novice-inflammation
Programming with R
Stars: ✭ 142 (+0.71%)
Mutual labels:  rmarkdown, knitr
vembedr
Functions to Embed Video in HTML
Stars: ✭ 56 (-60.28%)
Mutual labels:  shiny, rmarkdown
learning R
List of resources for learning R
Stars: ✭ 32 (-77.3%)
Mutual labels:  shiny, rmarkdown
flipdownr
📆📆📆 Implement a Countdown in RMarkdown Documents and Shiny Applications
Stars: ✭ 30 (-78.72%)
Mutual labels:  shiny, rmarkdown
Explore
R package that makes basic data exploration radically simple (interactive data exploration, reproducible data science)
Stars: ✭ 69 (-51.06%)
Mutual labels:  shiny, rmarkdown
Liftr
🐳 Containerize R Markdown documents for continuous reproducibility
Stars: ✭ 155 (+9.93%)
Mutual labels:  rmarkdown, knitr
Knitr
A general-purpose tool for dynamic report generation in R
Stars: ✭ 2,134 (+1413.48%)
Mutual labels:  rmarkdown, knitr
Anicon
Animated icons for R markdown and Shiny apps
Stars: ✭ 109 (-22.7%)
Mutual labels:  shiny, rmarkdown
customer-tracker
R data products: Reports, Presentations, Apps, and API's
Stars: ✭ 19 (-86.52%)
Mutual labels:  shiny, rmarkdown

epoxy

epoxy r-universe badge R-CMD-check

epoxy makes templating with glue easy in R Markdown documents and Shiny apps.

Installation

You can install the latest 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/",
  getOptions("repos")
))

install.packages("epoxy")

Setup

library(epoxy)

Loading epoxy adds four new knitr engines, or chunk types. Each type lets you intermix text with R code or data (expr in the table below), and each is geared toward a different output context.

Engine Output Context Delimiter
epoxy all-purpose markdown {expr}
epoxy_html HTML {{expr}}
epoxy_latex LaTeX <expr>
whisker all-purpose mustache template language

⚠️ Caution: Previously, epoxy provided a glue engine, but this conflicts with a similar chunk engine by the glue package. You can update existing documents to use the epoxy engine, or you can explicitly use epoxy’s glue chunk by including the following in your setup chunk.

use_epoxy_glue_engine()

Use epoxy

To use epoxy in your R Markdown document, create a new chunk using the engine of your choice. In that chunk, write in markdown, HTML, or LaTeX as needed, wrapping R expressions inside the delimiters for the epoxy chunk.

```{epoxy}
The average speed of the cars was **{mean(cars$speed)} mph.**
But on average the distance traveled was only _{mean(cars$dist)}_.
```

The average speed of the cars was 15.4 mph. But on average the distance traveled was only 42.98 ft.

epoxy is built around glue::glue(), which evaluates the R expressions in the { } and inserts the results into the string. The chunk above is equivalent to this call to glue::glue():

glue::glue("The average speed of the cars was **{mean(cars$speed)} mph**.
But on average the distance traveled was only _{mean(cars$dist)} ft_.")
#> The average speed of the cars was **15.4 mph**.
#> But on average the distance traveled was only _42.98 ft_.

One immediate advantage of using epoxy instead of glue::glue() is that RStudio’s autocompletion feature works inside epoxy chunks! Typing cars$ in the chunk will suggest the columns of cars.

Learn more

There’s a whole lot more that epoxy can do! Learn more:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].