\name{getChains} \alias{getChains} \title{ Fetches a vector of valid chains from the database from a StatShop database. } \usage{ getChains() } \description{ Returns a vector of chains in the database. Note that chains need only exist in the database, they may not have any data associated with them. } \seealso{ \code{\link{asp.dbConnect}}, \code{\link{getCycles}} } \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") getChains() ### get all chains for which there is MCMC data. getChains()[getCycles()[,"chain_last_cycle"]>0] asp.dbDisconnect() } } \keyword{database}