phrGetWarningStrings: Retrieve warning messages.

Description Usage Details Value References Examples

View source: R/phreeqc.R

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

1

Details

A NULL value is returned if there are no warnings.

Value

A character vector containing warning messages or NULL.

References

ftp://brrftp.cr.usgs.gov/pub/charlton/iphreeqc/IPhreeqc.pdf

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# 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 July 1, 2020, 11:46 p.m.