phrSetErrorFileName: Set the name of the error file.

Description Usage Arguments References See Also Examples

View source: R/phreeqc.R

Description

Sets the name of the error file. The default value is phreeqc.0.err.

Usage

1

Arguments

filename

the name of the file.

References

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

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# This example attempts to run a input string, fails and writes
# the error message to the error file (no database is loaded).
phrSetErrorFileOn(TRUE)
phrSetErrorFileName(file.path(tempdir(), "phreeqc.errors"))
input <- c( 
  'SOLUTION 1 Pure water ',
  'EQUILIBRIUM_PHASES 1  ',
  '    Calcite 0 10      '
  )

if (is.null(phrRunString(input))) {
  cat(paste("see ", phrGetErrorFileName(), ".\n", sep = ""))
}

phreeqc documentation built on July 1, 2020, 11:46 p.m.