Learn R Programming

phreeqc (version 3.8.7)

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)

Value

This function returns NULL.

Arguments

input

String containing data to be used as the phreeqc database.

Details

All previous definitions are cleared.

References

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

See Also

Other Load Database: phrLoadDatabase()

Examples

Run this code

# 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 = ""))
}

Run the code above in your browser using DataLab