This function retrieves custom attributes from the APSIMX object that were added using the .add_attribute() function. It allows access to metadata or assumptions stored within the APSIMX object, which can be useful for summarising assumptions in reports or for debugging purposes.

.get_attribute(apsimx, attribute_name = NULL)

Arguments

apsimx

APSIM model object as returned by rapsimng::read_apsimx().

attribute_name

Character scalar name of the attribute to retrieve. If NULL, returns all attributes under "agrillm".