phrSetErrorFileOn: Set error file on/off.

Description Usage Arguments Details References See Also Examples

View source: R/phreeqc.R

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

1

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

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

See Also

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

Examples

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