phrGetWarningStrings: Retrieve warning messages.

View source: R/phreeqc.R

phrGetWarningStringsR Documentation

Retrieve warning messages.

Description

Returns a character vector containing any warning messages that were generated during the last invocation of the following methods: phrAccumulateLine, phrLoadDatabase, phrLoadDatabaseString, phrRunAccumulated, phrRunFile, phrRunString.

Usage

phrGetWarningStrings()

Details

A NULL value is returned if there are no warnings.

Value

A character vector containing warning messages or NULL.

References

https://water.usgs.gov/water-resources/software/PHREEQC/IPhreeqc.pdf

Examples


# This example loads the phreeqc.dat database and attempts to use the
# DATABASE keyword to set the database to wateq4f.dat.  A warning is
# displayed stating that the DATABASE keyword is ignored in the 'R'
# implementation.
phrLoadDatabaseString(phreeqc.dat)
phrAccumulateLine("DATABASE wateq4f.dat")
phrAccumulateLine("SOLUTION 1")
phrRunAccumulated()
if (!is.null(phrGetWarningStrings())) {
  cat(phrGetWarningStrings(), sep = "\n")
}


phreeqc documentation built on Sept. 11, 2024, 8:33 p.m.