Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

phrSetLogFileOn

Set log file on/off.


Description

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.

Usage

phrSetLogFileOn(value)

Arguments

value

if TRUE, writes output to the the log file.

Details

Logging must be enabled through the use of the KNOBS -logfile option in order to receive an log messages.

References

See Also

Examples

# 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 = ""))
}

phreeqc

R Interface to Geochemical Modeling Software

v3.6.3
GPL-3
Authors
S.R. Charlton, D.L. Parkhurst, and C.A.J. Appelo, with contributions from D. Gillespie for Chipmunk BASIC and S.D. Cohen, A.C. Hindmarsh, R. Serban, D. Shumaker, and A.G. Taylor for CVODE/SUNDIALS
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.