Validates the Extensible Markup Language (XML) formatted metadata that is intended for a USGS data release. Checks your FGDC-compatible geospatial metadata record using mp (metadata parser). Requires the mp executable is on your path. Download and install the software if not found.
file: 'character' string. Path to a XML formatted metadata file that contains the information for a USGS data release.
destdir: 'character' string. Destination directory to write files, with tilde-expansion performed. Defaults to the file directory.
opts: 'character' vector. Output option codes. Choose from one or more of the following codes: e direct syntax errors to file, t write indented ASCII text file, h write outline-style HTML file, f write FAQ-style HTML file, s write Standard Generalized Markup Language (SGML) file, x write XML file, and d write Directory Interchange Format (DIF) file.
error: 'logical' flag. Whether to stop execution if validation errors are found (default is FALSE) or mp executable is not accessible.
Returns
Invisibly returns a flag indicating whether validation errors were found. Returns NA if mp executable is not accessible.