import(
	parallel,
	lattice,
	coda
)

# As advised by R-devel 3.3:
importFrom("grDevices", "dev.new", "dev.off", "pdf", "rainbow",
           "topo.colors")
importFrom("stats", "acf", "as.formula", "median", "na.omit",
           "quantile", "start", "update", "var", "window")
importFrom("utils", "capture.output", "compareVersion", "data", "find",
           "flush.console", "packageVersion", "packageDescription", 
		   "read.csv", "read.table")

export(

autoextend.jags,
autoextend.JAGS,

run.jags,
autorun.jags,

run.jags.study,
run.JAGS.study,
drop.k,
drop.k.jags,
drop.k.JAGS,

run.JAGS,
autorun.JAGS,
results.jags,
results.JAGS,
cleanup.jags,
cleanup.JAGS,

combine.mcmc,
combine.MCMC,
combine.jags,
combine.JAGS,
divide.jags,
divide.JAGS,

failed.jags,
failed.JAGS,
failedjags,   # deprecated - to be removed

contrasts.mcmc,
contrasts.MCMC,
prec2sd,

dump.format,
list.format,

extend.jags,
extend.JAGS,

read.winbugs,
read.WinBUGS,
read.jagsfile,
read.JAGSfile,
write.jagsfile,
write.JAGSfile,
template.jags,
template.JAGS,
template_huiwalter,

extract.runjags,
extract,

as.jags,
as.runjags,
is.runjags,
add.summary,

ask,
findjags,
new_unique,
timestring,
testjags,
findJAGS,
testJAGS,
load.runjagsmodule,
load.runJAGSmodule,
unload.runjagsmodule,
unload.runJAGSmodule,

runjags.options,
runjags.getOption

)

S3method(print, runjags)
S3method(summary, runjags)

S3method(print, runjagsmodel)
S3method(print, runjagsdata)
S3method(print, runjagsinits)
S3method(print, runjagsoutput)
S3method(print, rjagsoutput)
S3method(print, mcsestats)
S3method(print, crosscorrstats)
S3method(print, gelmanwithtarget)
S3method(print, dicstats)
S3method(print, runjagsstudy)
S3method(summary, runjagsstudy)
S3method(plot, runjagsstudy)
S3method(print, runjagsbginfo)

S3method(as.mcmc, runjags)
S3method(as.mcmc.list, runjags)
S3method(fitted, runjags)
S3method(residuals, runjags)

S3method(as.runjags, default)
S3method(as.jags, default)
S3method(as.runjags, jags)
S3method(as.jags, runjags)

S3method(extract, runjags)
S3method(fitted, runjags)
S3method(residuals, runjags)

S3method(plot, runjags)
S3method(plot, runjagsplots)
S3method(print, runjagsplots)

S3method(print, failedjags)
