phrGetLogStrings: Retrieve log output.

Description Usage Value References See Also Examples

View source: R/phreeqc.R

Description

Retrieves the string buffer containing phreeqc log output.

Usage

1

Value

A character vector containing phreeqc log output.

References

ftp://brrftp.cr.usgs.gov/pub/charlton/iphreeqc/IPhreeqc.pdf

See Also

Other Log: phrGetLogFileName, phrGetLogFileOn, phrGetLogStringsOn, phrSetLogFileName, phrSetLogFileOn, phrSetLogStringsOn

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# This example equilibrates pure water with gypsum with the output file on.
phrLoadDatabaseString(phreeqc.dat)
phrSetLogStringsOn(TRUE)

input <- vector(mode="character")
input <- c(input, "SOLUTION 1 Pure water ")
input <- c(input, "EQUILIBRIUM_PHASES 1  ")
input <- c(input, "  Gypsum 0 10         ")
input <- c(input, "KNOBS                 ")
input <- c(input, "  -logfile TRUE       ")

if (is.null(phrRunString(input))) {
  log <- phrGetLogStrings()
}

phreeqc documentation built on July 1, 2020, 11:46 p.m.