update_tracker_donations: Update donation data from GDQ tracker

View source: R/gdq-tracker-donations.R

update_tracker_donationsR Documentation

Update donation data from GDQ tracker

Description

Update donation data from GDQ tracker

Usage

update_tracker_donations(
  events,
  delay = 0.5,
  ignore_cache = FALSE,
  in_progress = FALSE,
  sound = TRUE
)

Arguments

events

Events such as "agdq2019", case insensitive.

delay

⁠[0.5]⁠: Seconds to wait between pages. Don't annoy the webserver.

ignore_cache

⁠[FALSE]⁠: If TRUE, ignore cached file and re-retrieve data.

in_progress

⁠[FALSE]⁠: If TRUE, donations for in-progress events are retrieved.

sound

⁠[TRUE]⁠: If TRUE, beepr::beep(2) is played after each event's donations have been retrieved. Since scraping will take a long time for full events, this seemed like a good idea.

Value

Invisibly: A tibble.

Examples

## Not run: 
update_tracker_donations(
  events = c("agdq2021", "sgdq2021"),
  ignore_cache = TRUE,
  in_progress = TRUE
)

## End(Not run)

jemus42/gdqdonations documentation built on July 1, 2023, 4:04 p.m.