Learn R Programming

whatr (version 1.0.1)

whatr_html: Return the right J! Archive HTML document

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

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

Run this code
# NOT RUN {
whatr_html(x = 6304, out = "showscores")
whatr_html(x = "2019-06-03", out = "showgame")
whatr_html("#8006", "showgame") %>% whatr_clues()
# }

Run the code above in your browser using DataLab