getDeaths: Getting death stats

Description Usage Arguments Details Value Note Examples

Description

Get the deaths from an appropriate API endpoint.

Usage

1
2
getDeaths(url = getOption("url.general.deaths.latest"), people = NULL,
  type = "latest")

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

type

Either latest for latest deaths only, or full, for a full set. Default is latest

Details

Uses a people object for sorting, and substitution if needed.

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 <- getDeaths()

## End(Not run)

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