- Notifications
You must be signed in to change notification settings - Fork8
Shiny App to Discover Cocktails.
License
NotificationsYou must be signed in to change notification settings
shabbychef/cocktailApp
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A Shiny app to discover cocktails.
-- Steven E. Pav,shabbychef@gmail.com
This package can be installed fromCRAN,viadrat, orfromgithubvia devtools:
# via CRAN:install.packages("cocktailApp")# via drat:if (require(drat)) {drat:::add("shabbychef") install.packages("cocktailApp")}# get snapshot from github (may be buggy)if (require(devtools)) {# latest greatest install_github("shabbychef/cocktailApp",ref="master")}
The app can be run in a few ways:
- You can download the github repo and run the
app.Rin the main directory,either viashiny::runApp()or by moving this directory to a location thatShiny Server serves. - You can install the package and then use the
cocktailApp()function.
The underlying data to power the shiny app is also available from this package.It is called, simply,cocktails. This data frame has rows for eachingredient, with amounts, and units, and is joined to information about thecocktail, which is identified by name, an upstream ID, URL, rating, number ofvotes, and more.
library(cocktailApp)library(dplyr)library(knitr)utils::data("cocktails",package="cocktailApp")cocktails %>% arrange(desc(rating)) %>% head(n=10) %>% select(cocktail,ingredient,amt,unit,rating) %>%knitr::kable()
| cocktail | ingredient | amt | unit | rating |
|---|---|---|---|---|
| Jersey Sour | Berneroy Fine Calvados | 2.00 | fl oz | 5 |
| Jersey Sour | Freshly squeezed lemon juice | 1.00 | fl oz | 5 |
| Jersey Sour | Sugar syrup (2 sugar to 1 water) | 0.50 | fl oz | 5 |
| Jersey Sour | Pasteurised egg white | 0.50 | fl oz | 5 |
| Jersey Sour | Lemon zest twist | 1.00 | garnish | 5 |
| Julep (Generic Name) | Mint leaves | 12.00 | fresh | 5 |
| Julep (Generic Name) | Brandy, whisk(e)y, gin, rum etc. | 2.50 | fl oz | 5 |
| Julep (Generic Name) | Sugar syrup (2 sugar to 1 water) | 0.75 | fl oz | 5 |
| Julep (Generic Name) | Angostura Aromatic Bitters | 3.00 | dash | 5 |
| Julep (Generic Name) | Mint sprig | 1.00 | garnish | 5 |
About
Shiny App to Discover Cocktails.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.




