phrSetErrorFileName {phreeqc} | R Documentation |
Set the name of the error file.
Description
Sets the name of the error file. The default value is phreeqc.0.err.
Usage
phrSetErrorFileName(filename)
Arguments
filename |
the name of the file. |
References
https://water.usgs.gov/water-resources/software/PHREEQC/IPhreeqc.pdf
See Also
Other Error:
phrGetErrorFileName()
,
phrGetErrorFileOn()
,
phrGetErrorStrings()
,
phrGetErrorStringsOn()
,
phrSetErrorFileOn()
,
phrSetErrorStringsOn()
Examples
# 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 = ""))
}
[Package phreeqc version 3.8.0 Index]