Learn R Programming

mtconnectR (version 0.2.0)

get_device_info_from_xml: Get info on all the devices in the xml file

Description

Device XML usually consists of the configuration details of multiple file. This function can detail all the device info in the XML into a data.frame for easy reference

Usage

get_device_info_from_xml(file_path_xml, mtconnect_version = NULL)

Arguments

file_path_xml
Path to the XML file
mtconnect_version
Specify MTConnect Version manually. If not specified, it is inferred automatically from the data.

See Also

get_xpaths_from_xml

Examples

Run this code
file_path_xml = "testdata/dataExtraction/test_devices.xml"
devices_info = get_device_info_from_xml(system.file(file_path_xml, package = "mtconnectR"))
print(devices_info)

Run the code above in your browser using DataLab