phrSetErrorFileOn | R Documentation |
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.
phrSetErrorFileOn(value)
value |
if TRUE, writes output to the the error file. |
The try is necessary to keep the error message from displaying immediately.
https://water.usgs.gov/water-resources/software/PHREEQC/IPhreeqc.pdf
Other Error:
phrGetErrorFileName()
,
phrGetErrorFileOn()
,
phrGetErrorStrings()
,
phrGetErrorStringsOn()
,
phrSetErrorFileName()
,
phrSetErrorStringsOn()
# 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 = ""))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.