phrGetWarningStrings {phreeqc} | R Documentation |
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
.
phrGetWarningStrings()
A NULL value is returned if there are no warnings.
A character vector containing warning messages or NULL.
ftp://brrftp.cr.usgs.gov/pub/charlton/iphreeqc/IPhreeqc.pdf
# 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") }