Reads information from a datapackage.json
file, i.e. the
descriptor file
that describes the Data Package metadata and its Data Resources.
Value
Data Package object, see create_package()
.
See also
Other read functions:
read_resource()
,
resources()
Examples
# Read a datapackage.json file
package <- read_package(
system.file("extdata", "datapackage.json", package = "frictionless")
)
package
#> A Data Package with 3 resources:
#> • deployments
#> • observations
#> • media
#> Use `unclass()` to print the Data Package as a list.
# Access the Data Package properties
package$name
#> [1] "example_package"
package$created
#> [1] "2021-03-02T17:22:33Z"
# List resources
resources(package)
#> [1] "deployments" "observations" "media"