\name{grepModels} \alias{grepModels} %- Also NEED an '\alias' for EACH other topic documented here. \title{Finds models matching regular expressiong} \description{ Returns a vector of model names found in the current database matching regular expression. } \usage{ grepModels(pattern) } %- maybe also 'usage' for other objects documented here. \arguments{ \item{pattern}{A regular expression (see \code{grep}) for model names to match.} } \details{ This function is basically the equivalent of running \code{grep(pattern, listModels())}, except that it returns the selected models rather than their indexes. This uses the current database connection defined by \code{asp.dbConnect}. } \value{ A list of model names. } \author{Russell Almond} \seealso{\code{\link{listModels}}, \code{\link{asp.dbConnect}}, \code{\link[base]{grep}} } \examples{ ### This example will only run if you have the StatShop test databases ### installed on your machine. StatShop <- Sys.getenv("STATSHOP") if (StatShop == "") { warn("StatShop not installed, skipping test.") } else { asp.dbConnect("mcmc_statistics_test","junit") grepModels("Task?A") asp.dbDisconnect() } } \keyword{database}