knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

anidb

anidb is an R-package that returns information from the anime database at AniDB. You should not use this package to request the same dataset multiple times on a single day or flood it with requests -- otherwise you can get banned by the AniDB administrators. If using Rmd, you should add cache = TRUE in chunks. For interactive use, anidb employs a simple caching mechanism.

Installation

You can install the development version of anidb from GitHub with:

# install.packages("devtools")
devtools::install_github("emitanaka/anidb")

Example

knitr::opts_chunk$set(cache.path = "cache/")
library(anidb)

Get all IDs with anime titles that has an approximate matching with "one piece" ignoring case:

aids <- anime_id(title = "one piece")

You can check the official titles of these anime IDs:

official_title(aids)
onepiece <- anime_info(aids)
head(onepiece)
library(ggplot2)
ggplot(onepiece, aes(start_date, rating)) + 
  geom_point()


emitanaka/anidb documentation built on Jan. 15, 2022, 8:11 a.m.