phrLoadDatabase: Load a phreeqc database file

Description Usage Arguments Value References See Also Examples

View source: R/phreeqc.R

Description

Loads the given phreeqc database into phreeqc. Returns NULL if successful.

Usage

1
phrLoadDatabase(filename)

Arguments

filename

The name of the database file.

Value

This function returns NULL.

References

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

See Also

Other Load Database: phrLoadDatabaseString

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# create temporary database file
tf <- tempfile()
writeLines(phreeqc.dat, tf)

if (is.null(phrLoadDatabase(tf))) {
  cat("database ok\n")
} else {
  cat("database contains errors\n")
}

# delete temporary database file
unlink(tf)

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