download_d1_data: Download data and metadata from DataONE

View source: R/download_d1_data.R

download_d1_dataR Documentation

Download data and metadata from DataONE

Description

Downloads a data object from DataONE along with metadata.

Usage

download_d1_data(data_url, path)

Arguments

data_url

(character) An identifier or URL for a DataONE object to download.

path

(character) Path to a directory to download data to.

Value

(character) Path where data is downloaded to.

See Also

[read_d1_files()] [download_d1_data_pkg()]

Examples

## Not run: 
download_d1_data("urn:uuid:a2834e3e-f453-4c2b-8343-99477662b570", path = file.path("."))
download_d1_data(
   "https://cn.dataone.org/cn/v2/resolve/urn:uuid:a2834e3e-f453-4c2b-8343-99477662b570",
    path = file.path(".")
    )

## End(Not run)

metajam documentation built on Sept. 11, 2024, 9:03 p.m.