get_dash_data: Get dash data table

View source: R/get_dash_data.R

get_dash_dataR Documentation

Get dash data table

Description

By default, this will re-download data from the djprdashdata repo if the current dashboard's data is out of date.

Usage

get_dash_data(
  refresh = c("auto", "always", "never"),
  branch = "main",
  verbose = F
)

Arguments

refresh

Refresh behaviour. Possible values:

  • auto: will re-download data if it is out of date

  • always: will always re-download data

  • never: will never re-download data

branch

The GitHub branch to download data from

verbose

Whether to print verbose messages

Value

A table with dashboard data.

If refresh was auto or always, ⁠attr(*, "date_updated")⁠ will contain a timestamp of when the data was last updated. get_dash_data(refresh = "never") # Just return internally cached data


djpr-data/djprlabourdash documentation built on April 28, 2023, 6:16 p.m.