Skip to contents

Developer-facing function that recomputes MD5 checksums for all raw source files currently present in the raw data folder and saves them to data/pgchecksum.rda. Replaces the manual data_raw/pgchecksum.R script.

Usage

pg_update_checksums(only_present = TRUE)

Arguments

only_present

Logical. If TRUE (default), only compute checksums for files currently present in the raw folder. If FALSE, stops if any metadata file is missing locally.

Value

A data.frame of checksums (invisibly). Also saves to data/pgchecksum.rda.

Details

Only run this when you have a fully verified, clean set of downloaded files. The resulting pgchecksum object is bundled with the package and used by check_pgsourcefiles() and the optional checksum verification in get_pgfile().

Examples

if (FALSE) { # \dontrun{
pg_update_checksums()
} # }