Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

phrSetErrorFileOn

Set error file on/off.


Description

Sets the error file switch on or off. This switch controls whether or not phreeqc writes to the error file. The initial setting is off.

Usage

phrSetErrorFileOn(value)

Arguments

value

if TRUE, writes output to the the error file.

Details

The try is necessary to keep the error message from displaying immediately.

References

See Also

Examples

# This example attempts to run ex1, fails, and writes the error
# message to the error file (no database is loaded).
phrSetErrorFileOn(TRUE)
phrSetErrorFileName(file.path(tempdir(), "phreeqc.errors"))
if (!is.null(try(phrRunString(ex1), silent=TRUE))) {
  cat(paste("see ", phrGetErrorFileName(), ".\n", sep = ""))
}

phreeqc

R Interface to Geochemical Modeling Software

v3.6.3
GPL-3
Authors
S.R. Charlton, D.L. Parkhurst, and C.A.J. Appelo, with contributions from D. Gillespie for Chipmunk BASIC and S.D. Cohen, A.C. Hindmarsh, R. Serban, D. Shumaker, and A.G. Taylor for CVODE/SUNDIALS
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.