\name{getCycles} \alias{getCycles} \title{ Fetches a table of cycles by chain number from a StatShop database. } \usage{ getCycles() } \description{ Fetches a table giving the first (burn-in) and last cycle number for each chain from a StatShop database. This is the \code{chain_data_table} from the database. } \seealso{ \code{\link{asp.dbConnect}}, \code{\link{getChains}} } \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") getCycles() ### get the length of shortest chain. min(getCycles()[,"chain_last_cycle"]) asp.dbDisconnect() } } \keyword{database}