Use this function every time you open a new RStudio Session, aka every time you use the UKB RAP. We don't want to save the data within the Git repository, so you'd need to download it every time you go back to analyzing the data.
Usage
download_data(
project_id = get_rap_project_id(),
file_prefix = "data",
file_ext = c("csv", "parquet"),
username = rap_get_user()
)
Arguments
- project_id
The project's abbreviation. Defaults to using
get_rap_project_id()
, which is the name of the project folder.- file_prefix
The prefix to add to the start of the file name. Defaults to "data".
- file_ext
The file extension of the dataset. Defaults to "csv", but can also provide "parquet".
- username
The username to set where the dataset is saved to. Defaults to using
rap_get_user()
, which is the name of the current user of the session.