read_data_package_doi {EDIutils}R Documentation

Read data package Digital Object Identifier

Description

Read data package Digital Object Identifier

Usage

read_data_package_doi(packageId, as_url = FALSE, env = "production")

Arguments

packageId

(character) Data package identifier

as_url

(logical) Returns the DOI as a URL if TRUE.

env

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

Value

(character) The Digital Object Identifier for packageId

See Also

Other Accessing: read_data_entity_checksum(), read_data_entity_names(), read_data_entity_name(), read_data_entity_resource_metadata(), read_data_entity_sizes(), read_data_entity_size(), read_data_entity(), read_data_package_archive(), read_data_package_citation(), read_data_package_error(), read_data_package_from_doi(), read_data_package_report_checksum(), read_data_package_report_resource_metadata(), read_data_package_report_summary(), read_data_package_report(), read_data_package_resource_metadata(), read_data_package(), read_evaluate_report_summary(), read_evaluate_report(), read_metadata_checksum(), read_metadata_dublin_core(), read_metadata_entity(), read_metadata_format(), read_metadata_resource_metadata(), read_metadata()

Examples

## Not run: 

# Read package DOI
doi <- read_data_package_doi("knb-lter-jrn.210548103.15")
doi
#> [1] "doi:10.6073/pasta/c80c0c03d22791524d4b870d2193c843"

# Read package DOI as URL
doi <- read_data_package_doi("knb-lter-jrn.210548103.15", as_url = TRUE)
doi
#> [1] "https://doi.org/10.6073/pasta/c80c0c03d22791524d4b870d2193c843"

## End(Not run)

[Package EDIutils version 1.0.3 Index]