phrSetErrorFileName | R Documentation |
Sets the name of the error file. The default value is phreeqc.0.err.
phrSetErrorFileName(filename)
filename |
the name of the file. |
https://water.usgs.gov/water-resources/software/PHREEQC/IPhreeqc.pdf
Other Error:
phrGetErrorFileName()
,
phrGetErrorFileOn()
,
phrGetErrorStrings()
,
phrGetErrorStringsOn()
,
phrSetErrorFileOn()
,
phrSetErrorStringsOn()
# 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 = ""))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.