knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The purpose of geeks is to download data from three game-related geek sites: boardgamegeek, rpggeek and videogamegeek.
At the moment, the usage covers fetching and parsing game entries, plays and families. Support for collections, search and threads is planned.
You can install the development version from GitHub with:
# install.packages("devtools") devtools::install_github("jchrom/geeks")
The following snippet retrieves data about a set of games, and coerces them into a data frame:
library(geeks) get_games(c(174430, 161936, 224517))
Play data can be obtained given a game id:
get_plays(174430)
Multiple families can be obtained at once:
get_families(c(7544, 17634))
xml2, httr, tibble and the BGG API2 docs.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.