From 668817a8d57be28b1f59ff8331da87ea7fedac38 Mon Sep 17 00:00:00 2001 From: Scott R Charlton Date: Wed, 5 Feb 2014 01:53:18 +0000 Subject: [PATCH] more methods finished git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@8426 1feff8c3-07ed-0310-ac33-dd36852eb9cd --- R/phreeqc/man/phrGetErrorString.Rd | 47 ++++++++++++++++++++++++++ R/phreeqc/man/phrGetSelectedOutput.Rd | 44 ++++++++++++++++++++++++ R/phreeqc/man/phrLoadDatabase.Rd | 47 ++++++++++++++++++++++++++ R/phreeqc/man/phrRunFile.Rd | 48 +++++++++++++++++++++++++++ 4 files changed, 186 insertions(+) create mode 100644 R/phreeqc/man/phrGetErrorString.Rd create mode 100644 R/phreeqc/man/phrGetSelectedOutput.Rd create mode 100644 R/phreeqc/man/phrLoadDatabase.Rd create mode 100644 R/phreeqc/man/phrRunFile.Rd diff --git a/R/phreeqc/man/phrGetErrorString.Rd b/R/phreeqc/man/phrGetErrorString.Rd new file mode 100644 index 00000000..67da103e --- /dev/null +++ b/R/phreeqc/man/phrGetErrorString.Rd @@ -0,0 +1,47 @@ +\name{phrGetErrorString} +\alias{phrGetErrorString} +\title{ + Return error string +} +\description{ + + phrGetErrorString executes a phreeqc run +} +\synopsis{ + phrGetErrorString() +} +\usage{ + phrGetErrorString() +} +\arguments{ +} %END arguments +\details{ + + Any details about the operation of this function should go here. +} %END details +\value{ + This function returns the errors that occured during the previous + phrReadDB, phrRun, phrRunFile call. +} +\references{ + Literature references and web URLs can go here. +} +\author{ + Scott Charlton + + Lopaka(Rob) Lee +} +\seealso{ + \code{\link{phrReadString}}, + \code{\link{phrRun}}, + \code{\link{phrRunFile}}, + \code{\link{phrGetSelectedOutput}} +} + +\examples{ + # loaddatabase should fail + n <- try(phrLoadDatabase("missing.dat"), silent = TRUE) + # if n is non-NULL display error string + if (!is.null(n)) phrGetErrorString() +} +\keyword{interface} diff --git a/R/phreeqc/man/phrGetSelectedOutput.Rd b/R/phreeqc/man/phrGetSelectedOutput.Rd new file mode 100644 index 00000000..8123096a --- /dev/null +++ b/R/phreeqc/man/phrGetSelectedOutput.Rd @@ -0,0 +1,44 @@ +\name{phrGetSelectedOutput} +\alias{phrGetSelectedOutput} +\title{ + Return the results of a phreeqc run. +} +\description{ + phrGetSelectedOutput return the results of a phreeqc run specified + in the selected output block of a phreeqc input file. + +} +\synopsis{ + phrGetSelectedOutput() +} +\usage{ + phrGetSelectedOutput() +} +\arguments{ +} %END arguments +\details{ + + Any details about the operation of this function should go here. + +} %END details +\value{ + Returns a data frame containing ... +} +\references{ + Literature references and web URLs can go here. +} +\author{ + Scott Charlton + + Lopaka(Rob) Lee +} +\seealso{ + \code{\link{phrReadDB}}, + \code{\link{phrReadString}}, + \code{\link{phrRun}} +} +\examples{ + + # Simple example here +} +\keyword{interface} diff --git a/R/phreeqc/man/phrLoadDatabase.Rd b/R/phreeqc/man/phrLoadDatabase.Rd new file mode 100644 index 00000000..9043be97 --- /dev/null +++ b/R/phreeqc/man/phrLoadDatabase.Rd @@ -0,0 +1,47 @@ +\name{phrLoadDatabase} +\alias{phrLoadDatabase} +\title{ + Read phreeqc database file +} +\description{ + + phrLoadDatabase loads a phreeqc database file into ... +} +\synopsis{ + phrLoadDatabase(filename) +} +\usage{ + phrLoadDatabase(filename) +} +\arguments{ +\item{filename}{ + The file name of the database. +} +} %END arguments +\details{ + + Any details about the operation of this function should go here. + +} %END details +\value{ + This function returns NULL. +} +\references{ + Literature references and web URLs can go here. +} +\author{ + Scott Charlton + +} +\seealso{ + \code{\link{phrReadString}}, + \code{\link{phrRun}}, + \code{\link{phrGetSelectedOutput}} +} + +\examples{ + + # This will only work if phreeqc.dat is in the current directory + phrLoadDatabase("phreeqc/phreeqc.dat") +} +\keyword{interface} diff --git a/R/phreeqc/man/phrRunFile.Rd b/R/phreeqc/man/phrRunFile.Rd new file mode 100644 index 00000000..3386f835 --- /dev/null +++ b/R/phreeqc/man/phrRunFile.Rd @@ -0,0 +1,48 @@ +\name{phrRunFile} +\alias{phrRunFile} +\title{ + Run phreeqc input file +} +\description{ + + phrRunFile executes a phreeqc run +} +\synopsis{ + phrRunFile(filename) +} +\usage{ + phrRunFile(filename) +} +\arguments{ +\item{filename}{ + The file name of the phreeqc input file. +} +} %END arguments +\details{ + + Any details about the operation of this function should go here. + +} %END details +\value{ + This function returns NULL. +} +\references{ + Literature references and web URLs can go here. +} +\author{ + Scott Charlton + + Lopaka(Rob) Lee +} +\seealso{ + \code{\link{phrReadString}}, + \code{\link{phrRun}}, + \code{\link{phrGetSelectedOutput}} +} + +\examples{ + + # This will only work if ex1 is in the current directory + phrRunFile("phreeqc/ex1") +} +\keyword{interface}