phrLoadDatabase: Load a phreeqc database file

View source: R/phreeqc.R

phrLoadDatabaseR Documentation

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

https://water.usgs.gov/water-resources/software/PHREEQC/IPhreeqc.pdf

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 documentation built on Jan. 24, 2023, 1:08 a.m.