Read an MTG file.

read_mtg(file)

Arguments

file

The path to the MTG file (assumed UTF-8 encoded)

Value

A named list of four sections: the MTG classes, description, features, and MTG. The MTG is a data.tree data structure.

Note

See the documentation for the MTG format from the OpenAlea webpage for further details.

Examples

if (FALSE) { filepath= system.file("extdata", "simple_plant.mtg", package = "XploRer") read_mtg(filepath) }