download_data: Download file from the GitHub repo for this package

View source: R/download_data.R

download_dataR Documentation

Download file from the GitHub repo for this package

Description

Download file from the GitHub repo for this package

Usage

download_data(path, branch = "main")

Arguments

path

path + filename for a qs file incl. extension, with forward slashes, such as "data-raw/abs-ts/6202-0.qs". Path should be relative to the root directory of this package/repo.

branch

Github branch of this repo from which to download a file; default is main.

Value

A dataframe

Examples

## Not run: 
download_data("data-raw/abs-ts/6202-0.qs")

## End(Not run)

djpr-data/djprdashdata documentation built on Jan. 20, 2025, 12:31 p.m.