mdq_run: Score a metadata document against a MetaDIG suite

View source: R/quality.R

mdq_runR Documentation

Score a metadata document against a MetaDIG suite

Description

This function scores a metadata document against a MetaDIG suite. The default suite is for the Arctic Data Center.

Usage

mdq_run(document, suite_id = "arctic.data.center.suite.1")

Arguments

document

(eml/character) Either an EML object or path to a file on disk.

suite_id

(character) Specify a suite ID. Should be one of https://quality.nceas.ucsb.edu/quality/suites.

Value

(data.frame) A sorted data.frame of check results.

Examples

## Not run: 
# Check an EML document you are authoring
library(EML)
mdq_run(new("eml"))

# Check an EML document that is saved to disk
mdq_run(system.file("examples", "example-eml-2.1.1.xml", package = "EML"))

## End(Not run)

NCEAS/arcticdatautils documentation built on Aug. 28, 2023, 12:10 p.m.