Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Shiny App to Discover Cocktails.

License

NotificationsYou must be signed in to change notification settings

shabbychef/cocktailApp

Repository files navigation

Build StatusCRANDownloadsTotal

A Shiny app to discover cocktails.

-- Steven E. Pav,shabbychef@gmail.com

Installation

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")}

Basic Usage

The app can be run in a few ways:

  1. You can download the github repo and run theapp.R in the main directory,either viashiny::runApp() or by moving this directory to a location thatShiny Server serves.
  2. You can install the package and then use thecocktailApp() function.

Screenshots

Data

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()
cocktailingredientamtunitrating
Jersey SourBerneroy Fine Calvados2.00fl oz5
Jersey SourFreshly squeezed lemon juice1.00fl oz5
Jersey SourSugar syrup (2 sugar to 1 water)0.50fl oz5
Jersey SourPasteurised egg white0.50fl oz5
Jersey SourLemon zest twist1.00garnish5
Julep (Generic Name)Mint leaves12.00fresh5
Julep (Generic Name)Brandy, whisk(e)y, gin, rum etc.2.50fl oz5
Julep (Generic Name)Sugar syrup (2 sugar to 1 water)0.75fl oz5
Julep (Generic Name)Angostura Aromatic Bitters3.00dash5
Julep (Generic Name)Mint sprig1.00garnish5

About

Shiny App to Discover Cocktails.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp