
Create a GeoLocator Data Package from a GeoPressure Template
Source:R/create_gldp_geopressuretemplate.R
create_gldp_geopressuretemplate.RdThis function creates a GeoLocator Data Package based on the information found in a
DESCRIPTION file located in the specified directory. It utilizes the create_gldp function
and ensures that required fields are present, converting them into a format compatible with
GeoLocator Data Package standards.
Details
The function performs the following steps:
Checks if the provided directory exists.
Reads the
DESCRIPTIONfile using thedescpackage.Verifies the presence of mandatory fields (
Title,Authors@R, andLicense) and warns about the absence of suggested fields (VersionandDescription).Maps author roles to their corresponding GeoLocator roles.
Creates and returns a GeoLocator Data Package with the information extracted from the
DESCRIPTIONfile.