whatr_html: Return the right J! Archive HTML document

Description Usage Arguments Value Examples

View source: R/whatr-html.R

Description

To avoid downloading and reading the J! Archive over and over, this function can be used to return an HTML document from one of four types of input:

  1. Game ID (6304)

  2. Show number ("#8006")

  3. Air date ("2019-06-03")

  4. HTML document itself

Usage

1
whatr_html(x, out = c("showgame", "showscores"))

Arguments

x

Any kind of J! Archive game identifier.

out

One of "showscores" or "showgame" used for whatr_scores() or whatr_clues(), etc. respectively. Either document can be returned from the input of the other.

Value

A J! Archive html_document.

Examples

1
2
3
whatr_html(x = 6304, out = "showscores")
whatr_html(x = "2019-06-03", out = "showgame")
whatr_html("#8006", "showgame") %>% whatr_clues()

whatr documentation built on July 29, 2020, 5:06 p.m.