phrSetLogFileOn | R Documentation |
Sets the log file switch on or off. This switch controls whether or not phreeqc writes log messages to the log file. The initial setting is off.
phrSetLogFileOn(value)
value |
if TRUE, writes output to the the log file. |
Logging must be enabled through the use of the KNOBS -logfile option in order to receive an log messages.
https://water.usgs.gov/water-resources/software/PHREEQC/IPhreeqc.pdf
Other Log:
phrGetLogFileName()
,
phrGetLogFileOn()
,
phrGetLogStrings()
,
phrGetLogStringsOn()
,
phrSetLogFileName()
,
phrSetLogStringsOn()
# This example runs ex2 with the log file turned on.
phrLoadDatabaseString(phreeqc.dat)
phrSetLogFileOn(TRUE)
phrSetLogFileName(file.path(tempdir(), "ex2.log"))
# turn logging on
phrAccumulateLine("KNOBS; -logfile true")
phrRunAccumulated()
if (is.null(phrRunString(ex2))) {
cat(paste("see ", phrGetLogFileName(), ".\n", sep = ""))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.