# 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 = ""))
}
Run the code above in your browser using DataLab