download_OSD: Internal method for downloading OSDRegistry snapshot

View source: R/create_OSD.R

download_OSDR Documentation

Internal method for downloading OSDRegistry snapshot

Description

This is an internal method for downloading the latest snapshot (or sample ZIP) containing Official Series Description (OSD) text files in an alphabetical folder structure. These files are un-zipped and processed into JSON which is stored in "inst/extdata/OSD"

Usage

download_OSD(url = NULL, ...)

Arguments

url

Path to OSD Data Snapshot

...

Additional arguments to 'curl::curl_download()'

Details

Default path to OSD data snapshot is an "artifact" created by the refresh-osd workflow on the OSDRegistry GitHub Repository.

The latest version of the snapshot can be downloaded as a ZIP file from this URL: https://github.com/ncss-tech/OSDRegistry/releases/download/main/OSD-data-snapshot.zip.

Note: This is a ZIP file within a ZIP file where the internal ZIP file has a unique (weekly) date stamp.

Value

TRUE if successful, try-error if download or parsing fails


brownag/SoilKnowledgeBase documentation built on April 5, 2025, 1:32 a.m.