phrSetErrorStringsOn | R Documentation |
Sets the error strings switch on or off. This switch controls whether or not the data normally sent to the error file are stored in a buffer for retrieval. The initial setting is on.
phrSetErrorStringsOn(value)
value |
if TRUE, captures output normally sent to the error file into a buffer. |
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()
,
phrSetErrorFileOn()
# This example attempts to run ex1, fails, and displays the error message
# (no database is loaded).
phrSetErrorStringsOn(TRUE)
if (!is.null(try(phrRunString(ex1), silent=TRUE))) {
cat(phrGetErrorStrings(), "\n")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.