Is authorized to read
Note
User authentication is required (see login()
)
See also
Other Miscellaneous:
create_data_package_archive()
,
create_dn()
Examples
if (FALSE) { # \dontrun{
login()
# Get the most recently created data package
auditReport <- get_recent_uploads(
query = "serviceMethod=createDataPackage&limit=1"
)
# Get the resourceId
resourceId <- xml2::xml_text(
xml2::xml_find_all(auditReport, ".//resourceId")
)
resourceId
#> [1] "https://pasta.lternet.edu/package/eml/knb-lter-hbr/345/1"
# Check read authorization
is_authorized(resourceId)
#> [1] TRUE
logout()
} # }