Learn R Programming

phreeqc (version 3.6.3)

phrGetErrorStrings: 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()

Arguments

Value

The error messages as a character vector.

Details

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

References

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

See Also

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

Examples

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

# }

Run the code above in your browser using DataLab