Read an MTG file.
read_mtg(file)
file | The path to the MTG file (assumed UTF-8 encoded) |
---|
A named list of four sections: the MTG classes, description, features, and MTG. The MTG is a data.tree data structure.
See the documentation for the MTG format from the OpenAlea webpage for further details.
if (FALSE) { filepath= system.file("extdata", "simple_plant.mtg", package = "XploRer") read_mtg(filepath) }