getLatestDeaths: Getting death stat

Description Usage Arguments Value Note Examples

Description

Get the latest deaths from an appropriate API endpoint. Uses acitvePeople for name substitution.

Usage

1
2
getLatestDeaths(url = getOption("url.general.deaths.latest"),
  people = activePeople)

Arguments

url

URL of the appropriate API endpoint, defaults to getOption("url.general.deaths.latest"), and if that returns NULL, the Wurstmineberg API endpoint is used.

people

The people dataset to be used for sorting/naming the players, defaults to activePeople

Value

data.frame containing latest deaths for each player

Note

The API uses a different log than Minecraft stats, tl;dr things are complicated

Examples

1
2
3
4
5
## Not run: 
options(url.general.deaths.latest = "http://api.wurstmineberg.de/server/deaths/latest.json")
deaths <- getLatestDeaths()

## End(Not run)

jemus42/wurstmineR documentation built on May 19, 2019, 4:03 a.m.