import(lattice)

importFrom(rjags, "jags.model", "adapt", "coda.samples", "list.modules",
           "load.module","unload.module")
importFrom(methods, "setGeneric", "setMethod", "setClass")
importFrom(coda, "gelman.diag", "as.mcmc.list", "thin", "mcmc", "as.mcmc")
importFrom(parallel, "detectCores", "makeCluster", "clusterExport", 
           "clusterSetRNGStream", "clusterApply", "stopCluster", "clusterEvalQ")
importFrom(stats, "runif", "time", "start", "end", "quantile", "var", "sd")
importFrom(grDevices, "devAskNewPage", "rainbow")
importFrom(graphics, "plot", "abline", "axis", "box", "segments", "lines", "par")
importFrom(utils, "capture.output")

export("jags", "jagsUI","jags.basic","autojags","pp.check", "traceplot", 
       "whiskerplot", "View")

S3method("plot", "jagsUI")
S3method("xyplot", "jagsUI")
S3method("densityplot", "jagsUI")
S3method("print","jagsUI")
S3method("update","jagsUI")
S3method("update","jagsUIbasic")
S3method("summary","jagsUI")
S3method("traceplot", "jagsUI")
S3method("traceplot", "default")
S3method("View", "jagsUI")
S3method("View","default")

