phrLoadDatabaseString(phreeqc.dat)
# example 21 requires the selected_output file to be turned on
phrSetSelectedOutputFileOn(1, TRUE)
phrSetOutputStringsOn(TRUE)
# this takes longer than 5 seconds
if (FALSE) phrRunString(ex21)
phrGetOutputStrings()
Run the code above in your browser using DataLab