phrGetErrorStrings: Retrieve error string messages.

View source: R/phreeqc.R

phrGetErrorStringsR Documentation

Retrieve error string messages.

Description

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

Usage

phrGetErrorStrings()

Details

This routine is rarely needed when running interactively since the error string is displayed when it occurs.

Value

The error messages as a character vector.

References

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

See Also

Other Error: phrGetErrorFileName(), phrGetErrorFileOn(), phrGetErrorStringsOn(), phrSetErrorFileName(), phrSetErrorFileOn(), phrSetErrorStringsOn()

Examples


# loaddatabase should fail
n <- try(phrLoadDatabase("missing.dat"), silent = TRUE)
# if n is non-NULL display error string
if (!is.null(n)) phrGetErrorStrings()


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