Skip to contents

Read data package archive

Usage

read_data_package_archive(packageId, transaction, path, env = "production")

Arguments

packageId

(character) Data package identifier

transaction

(character) Transaction identifier. This parameter is DEPRECATED.

path

(character) Path of directory in which the result will be written

env

(character) Repository environment. Can be: "production", "staging", or "development".

Value

(.zip file) The data package archive of packageId requested by transaction

Examples

if (FALSE) {

# Download zip archive
read_data_package_archive("knb-lter-sev.31999.1", path = tempdir())
#> |=============================================================| 100%
dir(tempdir())
#> [1] "knb-lter-sev.31999.1.zip"
}