download_pg_rawdata: Download the raw-data for PRIO-GRID

View source: R/download_data.R

download_pg_rawdataR Documentation

Download the raw-data for PRIO-GRID

Description

Before running this, you need to set the folder using pgoptions$set_rawfolder("path/to/folder")

Usage

download_pg_rawdata(
  file_info = NULL,
  overwrite = FALSE,
  resume = TRUE,
  max_retry = 10
)

Arguments

file_info

A data.frame with the same structure as the result from pg_rawfiles(). If file_info is null (default), then file_info will be all data returned from pg_rawfiles().

overwrite

Whether or not to download and overwrite files already in local folder.

resume

If true, will also download files that did not finish download last time the function was run.

Value

data.frame Download summary

Examples

files_to_download <- pg_rawfiles() |> dplyr::filter(id == "ec3eea2e-6bec-40d5-a09c-e9c6ff2f8b6b")
# download_pg_rawdata(overwrite = TRUE, file_info = files_to_download)

prio-data/priogrid documentation built on June 14, 2025, 11:06 p.m.