read_xml: Function to read x from an XML file

View source: R/read_xml.R

read_xmlR Documentation

Function to read x from an XML file

Description

Read the XML file file and convert it to a dmdScheme object using the function as_dmdScheme().

Usage

read_xml(file, keepData = TRUE, useSchemeInXml = NULL, verbose = FALSE)

Arguments

file

Path to file or connection to write to.

keepData

if the data should be kept or replaced with one row with NAs

useSchemeInXml

if TRUE, use scheme definition in xml and raise an error if the xml does not contain a scheme definition. If False, use the scheme definition from the corresponding installed package, even if the xml contains a scheme definition. if NULL (the default), use the definition in the xml if it contains a definition, if not use the corresponding definition from the installed package.

verbose

give verbose progress info. Useful for debugging.

Examples

# write_xml(dmdScheme_raw(), file = tempfile())


Exp-Micro-Ecol-Hub/dmdScheme documentation built on Aug. 31, 2022, 3:17 p.m.