# This example runs ex2 with log strings turned on.
phrLoadDatabaseString(phreeqc.dat)
phrSetLogStringsOn(TRUE)
# turn logging on
phrAccumulateLine("KNOBS; -logfile true")
phrRunAccumulated()
if (is.null(phrRunString(ex2))) {
cat(phrGetLogStrings(), sep = "\n")
}
Run the code above in your browser using DataLab