phrGetWarningStrings | 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.
https://water.usgs.gov/water-resources/software/PHREEQC/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")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.