Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.29 KB

README.md

File metadata and controls

41 lines (27 loc) · 1.29 KB

brewdogr

A simple R wrapper around the Punk API

The Punk API itself provides Brewdog beer recipe data in a programmatically accessible format.

The Punk API can be found at: https://punkapi.com

The Brewdog DIY Dog recipes as a PDF download can be found at: https://www.brewdog.com/uk/community/diy-dog

Install

# install.packages("devtools")
devtools::install_github("phillc73/brewdogr")
library("brewdogr")

This package depends on:
RCurl >= 1.98-1.1
jsonlite >= 1.6.1

Usage

The following call to the function get_beers returns all recipes where the expected ABV is equal to or greater than eight, it was first brewed by Brewdog after September 2013 and it uses the hop known as Fuggle.

get_beers(abv_gt = 8,
          yeast = "Wyeast",
          brewed_after = "09/2013",
          hops = "Fuggle")

Issues

Problems? Something just doesn't work?

Submit issues here

Currently, there is an issue that API results are limited to an apparent maximum of 80. Greater than this are returned, on subsequent pages, but there's no way to know how many pages are returned. See this upstream issue report.