phrLoadDatabaseString(phreeqc.dat)
phrSetOutputStringsOn(TRUE)
# example 8 requires the selected_output file to be turned on
phrSetSelectedOutputFileOn(1, TRUE)
phrRunString(ex8)
phrGetOutputStrings()
# cleanup
unlink(c("ex8.sel", "Zn1e_7", "Zn1e_4"))
Run the code above in your browser using DataLab