Skip to contents

Reads the _metawoRld.yml configuration file from a project directory and returns the defined schema.

Usage

get_schema(path = ".", schema = c("extraction", "assessment"))

Arguments

path

Character string. The path to the root directory of the metawoRld project. Defaults to the current working directory (.).

schema

Character string. Either extraction (default) or assessment.

Value

A list representing the schema defined in the project's _metawoRld.yml file. This typically includes definitions for metadata_fields and data_fields. Returns NULL invisibly and issues a warning if the schema cannot be retrieved.