Skip to contents

Read data entity size

Usage

read_data_entity_size(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

(numeric) Size, in bytes, of entityId in packageId

Examples

if (FALSE) { # \dontrun{

# List data entities
entityIds <- list_data_entities(packageId = "knb-lter-cdr.711.1")
entityIds
#> [1] "c61703839eac9a641ea0c3c69dc3345b"

# Read size
size <- read_data_entity_size(
 packageId = "knb-lter-cdr.711.1",
 entityId = entityIds
)
size
#> [1] 707094
} # }