phrRunFile: Run phreeqc input file

Description Usage Arguments Value References See Also Examples

View source: R/phreeqc.R

Description

phrRunFile executes a phreeqc run using a file as input

Usage

1
phrRunFile(filename)

Arguments

filename

The file name of the phreeqc input file.

Value

This function returns NULL on success.

References

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

See Also

Other Run: phrRunAccumulated, phrRunString

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# load the phreeqc.dat database
phrLoadDatabaseString(phreeqc.dat)

# create ex2 if it doesn't exist
if (!file.exists("ex2")) writeLines(ex2, "ex2")

# run ex2
if (is.null(phrRunFile("ex2"))) {
  cat("use phrGetSelectedOutput() to see results.\n")
}

unlink("ex2")  # tidy up

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