Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

phrLoadDatabase

Load a phreeqc database file


Description

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

Usage

phrLoadDatabase(filename)

Arguments

filename

The name of the database file.

Value

This function returns NULL.

References

See Also

Other Load Database: phrLoadDatabaseString

Examples

# 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

R Interface to Geochemical Modeling Software

v3.6.3
GPL-3
Authors
S.R. Charlton, D.L. Parkhurst, and C.A.J. Appelo, with contributions from D. Gillespie for Chipmunk BASIC and S.D. Cohen, A.C. Hindmarsh, R. Serban, D. Shumaker, and A.G. Taylor for CVODE/SUNDIALS
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.