pkgdown/analytics.html

Skip to contents

Create a new GeoLocator Data Package shell with the GeoLocator-DP profile schema.

Usage

create_gldp(version = NULL, ...)

Arguments

version

Optional GeoLocator-DP version. Use NULL for the latest version, or set it explicitly when creating a package for an older schema such as "v0.3" or "v1.0".

...

Additional top-level descriptor fields, such as title, id, contributors, or licenses, used to initialize package metadata.

Value

A geolocatordp object with the requested schema URL and no resources.

See also

read_gldp() to read an existing package, write_gldp() to write a package to disk, and gldp_version() to inspect the package schema version.

Examples

pkg <- create_gldp()
pkg
#> 
#> ── A GeoLocator Data Package `pkg` (v1.0) ──────────────────────────────────────
#> 
#> ── Metadata 
#> Note: All green texts are fields of `pkg` which can be accessed with `pkg$field`).
#>  access: Open access
#> ! community: no Geolocator DP community
#> 
#> ── Resources: (0 resources)  

# Previous version
pkg <- create_gldp(version = "v0.2")
pkg
#> 
#> ── A GeoLocator Data Package `pkg` (v0.2) ──────────────────────────────────────
#> 
#> ── Metadata 
#> Note: All green texts are fields of `pkg` which can be accessed with `pkg$field`).
#>  access: Open access
#> ! community: no Geolocator DP community
#> 
#> ── Resources: (0 resources)