knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(BrkbadWiki)
library(knitr)

Introduc$\color{green}{\text{ti}}$on

Breaking Bad is regarded as one of the greatest tv series of all time. It receives more than 1 million ratings from IMDB users, and the average rating is a remarkable 9.5. One of the fans of this show created an API website that contains detailed information about the 63 characters that appeared in the show and all episodes. My goal is to extract information from the API and create a package that allows the user to search for the information they want to know about the show, like a character's nickname, the name of the actor or actress that portrayed a specific character, or even the number of deaths an individual is responsible for. I want my API client to be a Breaking Bad Wiki that allows the users to look up information that interests them.

$\color{green}{\text{Li}}$nks to Data Sources

The documentation of the Breaking Bad API can be accessed by navigating to https://breakingbadapi.com/Documentation, and the base Url is https://www.breakingbadapi.com/api/. The Breaking Bad API has four different endpoints: characters, episodes, quote, and deaths.

Des$\color{green}{\text{cr}}$iption

The BrkbadWiki package contains four functions: option(), characters(), cast(), and death().

opti$\color{green}{\text{o}}$n()

kable(option(10))

ch$\color{green}{\text{ar}}$acters()

kable(characters(7, "display"))
characters("Mike Ehrmantraut", "image")

$\color{green}{\text{ca}}$st()

kable(cast("Mike Ehrmantraut"))

death()

kable(death('random'))
kable(death('search', 'bomb'))

Maintai$\color{green}{\text{ne}}$r

The package maintainer: Please e-mail me at cz2581@columbia.edu



czhang2581/BrkbadWiki documentation built on Dec. 16, 2019, 12:39 a.m.