phrSetOutputFileOn | R Documentation |
Sets the output file switch on or off. This switch controls whether or not phreeqc writes to the output file. This is the output normally generated when phreeqc is run. The initial setting is off.
phrSetOutputFileOn(value)
value |
if TRUE, writes output to the the output file. |
https://water.usgs.gov/water-resources/software/PHREEQC/IPhreeqc.pdf
Other Output:
phrGetOutputFileName()
,
phrGetOutputFileOn()
,
phrGetOutputStrings()
,
phrGetOutputStringsOn()
,
phrSetOutputFileName()
,
phrSetOutputStringsOn()
# This example runs ex2 with the output file turned on.
# write temporary input file
tf <- tempfile()
writeLines(ex2, tf)
# load database and run input file
phrLoadDatabaseString(phreeqc.dat)
phrSetOutputFileOn(TRUE)
phrSetOutputFileName(file.path(tempdir(), "ex2.out"))
if (is.null(phrRunFile(tf))) {
cat(paste("see ", phrGetOutputFileName(), ".\n", sep = ""))
}
# delete temporary input file
unlink(tf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.