download_corpus: Download EML metadata from all data packages in an...

View source: R/download_corpus.R

download_corpusR Documentation

Download EML metadata from all data packages in an Environmental Data Initiative (EDI) scope.

Description

This function fetchs newest IDs and revision numbers from a given EDI scope, then download EML metadata files to a specified directory. Newest revision from each package only. Files will be named after the full packageId as found in the metadata, e.g. "knb-lter-ble.1.7.xml".

Usage

download_corpus(scope, path, EDI_env = "production")

Arguments

scope

(character) EDI scope, e.g. "knb-lter-ble"

path

(character) Path to existing directory to download EML files into

EDI_env

(character) EDI server to query. Defaults to "production". Options are "production", "staging", or "development".

Value

Nothing in R, just download files.


atn38/MetaInbase documentation built on Feb. 26, 2023, 9:56 a.m.