getMQPARValue: Retrieve a parameter value from a mqpar.xml file

Description Usage Arguments Details Value


If the file has the param, then return it as string. If the file is missing, warning is shown and NULL is returned. If the param (i.e. XML tag) is unknown or cannot be extracted, the program will quit (since this is a hard error). When multiple occurrences of the param are found (usually due to parameter groups), we test if the values are all identical. If so, the value is returned. If the values are different, a warning is emitted and NULL is returned.


getMQPARValue(mqpar_filename, param_name)



Filename (incl. absolute or relative path) to the mqpar.xml file


XML tag name, e.g. 'firstSearchTol' from which to read the value


E.g. calling getMQPARValue("mqpar.xml", "firstSearchTol") will look up the line <firstSearchTol>20</firstSearchTol> and return "20" (string!).


The stored value as string(!)

Search within the PTXQC package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.