\name{listVariables} \alias{listVariables} \title{Fetches a list of variables for a model from the StatShop database. } \usage{ listVariables(model) } \arguments{ \item{model}{Name of model to select.} } \description{ Fetches back a list of variables associated with a model in a StatShop database. A connection must be open to the StatShop database for this function to work. } \seealso{ \code{\link{asp.dbConnect}}, \code{\link{listModels}}, \code{\link{getVariable}}, \code{\link{getVariableMetadata}} } \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") ## Get all variables for the student model. listVariables("system") ## Get variables for the first link model. listVariables(listLinkModels()[1]) asp.dbDisconnect() } } \keyword{database}