localize_all_new_reports.Rd
Run this function to download any new reports to a local directory. The function reads a little file-based database of last-modified dates for reports, and compares the dates to the current last-modified dates on the server. If the server has a newer report, the function downloads the report to the local directory and renames it with the `md5` hash of the file contents. The function then updates the database with the new last-modified date and saves it to the reportdb_file.
localize_all_new_reports(reportdb_file, cache_dir = tempdir())
the file to read the database from
the directory to store the reports in
if (FALSE) {
cachedir = tempdir()
localize_all_new_reports("reportdb.csv", cachedir)
list.files(cachedir, pattern = 'tgz$')
}