phr_read_pqi: Read .pqi-files into tidyphreeqc

Description Usage Arguments Value Examples

View source: R/phreeqc_write_pqi.R

Description

Load .pqi-files produced by the PHREEQC-interactive GUI into the tidyphreeqc format phr_input()

Usage

1

Arguments

path

Path to file.

Value

An object of class phr_input()

Examples

1
2
3
4
5
6
7
8
# create some phr_input_sections
sol <- phr_solution(pH = 8, pe = 2, Na = 1, Cl = 1, units = "mol/l")
phase <- phr_equilibrium_phases(Halite = c(10, 1))

fil <- tempfile("data")
phr_write_pqi(phr_input(sol, phase), path = fil)
phr_read_pqi(path = fil)
unlink(fil) # tidy up

paleolimbot/tidyphreeqc documentation built on Aug. 29, 2019, 11:14 p.m.