phrGetOutputStrings: Retrieve standard phreeqc output.

Description Usage Details Value References See Also Examples

View source: R/phreeqc.R

Description

Retrieves the phreeqc output as a character vector.

Usage

1

Details

A NULL value is returned when there is no selected-output.

Value

A character vector containing phreeqc output.

References

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

See Also

Other Output: phrGetOutputFileName, phrGetOutputFileOn, phrGetOutputStringsOn, phrSetOutputFileName, phrSetOutputFileOn, phrSetOutputStringsOn

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# This example equilibrates pure water with calcite and displays
# the results
phrLoadDatabaseString(phreeqc.dat)
phrSetOutputStringsOn(TRUE)

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

if (is.null(phrRunString(input))) {
  cat(phrGetOutputStrings(), sep = "\n")
}

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