read.settings.Rd
This will try and find the PEcAn settings file in the following order:
--settings <file>
passed as command line argument using --settings
inputfile
passed as argument to function
PECAN_SETTINGS
environment variable PECAN_SETTINGS
pointing to a specific file
./pecan.xml
pecan.xml
in the current folder
read.settings(inputfile = "pecan.xml")
list of all settings as loaded from the XML file(s)
Once the function finds a valid file, it will not look further.
Thus, if inputfile
is supplied, PECAN_SETTINGS
will be
ignored.
Even if a file
argument is passed, it will be ignored if a file
is passed through a higher priority method.