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

phrLoadDatabaseString

Load a phreeqc database as a string or a list of strings.


Description

Load the specified string(s) as a database into phreeqc. Returns NULL if successful.

Usage

phrLoadDatabaseString(input)

Arguments

input

String containing data to be used as the phreeqc database.

Details

All previous definitions are cleared.

Value

This function returns NULL.

References

See Also

Other Load Database: phrLoadDatabase

Examples

# this example loads the phreeqc.dat database, turns on the
# output file and runs ex2 as a string
phrLoadDatabaseString(phreeqc.dat)
phrSetOutputFileOn(TRUE)
phrSetOutputFileName(file.path(tempdir(), "ex2.load-database.out"))
if (is.null(phrRunString(ex2))) {
  cat(paste("see ", phrGetOutputFileName(), ".\n", sep = ""))
}

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.