Skip to contents

Read data entity name

Usage

read_data_entity_name(packageId, entityId, env = "production")

Arguments

packageId

(character) Data package identifier

entityId

(character) Data entity identifier

env

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

Value

(character) Name of entityId in packageId

Examples

if (FALSE) { # \dontrun{

# List entities
entityIds <- list_data_entities(packageId = "knb-lter-cap.691.2")
entityIds
#> [1] "f6e4efd0b04aea3860724824ca05c5dd"
#> [2] "d2263480e75cc7888b41928602cda4c6"
#> [3] "d5cb83e4556408e48f636157e4dee49e"

# Read name
entityName <- read_data_entity_name(
 packageId = "knb-lter-cap.691.2",
 entityId = entityIds[1]
)
entityName
#> [1] "691_arthropods_00742cd00ab0d3d02337e28d1c919654.csv"
} # }