"hclust", "cutree", "as.dist", "cor", "residuals", "lm.fit", "sd")

MergeRareHaplotypes, MergeTaxaDepth, nTaxa, nAlleles, nLoci,
SplitByChromosome, StripDown, SubsetByLocus, SubsetByPloidy, SubsetByTaxon,

MergeIdenticalHaplotypes, MergeRareHaplotypes, MergeTaxaDepth, nTaxa, nAlleles,
PipelineMapping2Parents, RADdata, RADdata2VCF, readHMC, readProcessSamMulti,
"hclust", "cutree", "as.dist", "cor", "residuals", "lm.fit", "sd",
importFrom("utils", "read.csv", "write.table", "write.csv", "packageVersion")

importFrom("graphics", "plot", "points", "text", "hist")

PipelineMapping2Parents, RADdata, RADdata2VCF, readHMC, readDArTag,

GetTaxa, GetTaxaByPloidy, GetTaxaPloidy, GetWeightedMeanGenotypes, HindHe,
importFrom("graphics", "plot", "points", "text", "hist", "barplot", "par")

importFrom("stats", "chisq.test", "pbinom", "rbeta", "rbinom", "rmultinom")

##importFrom(coda, HPDinterval, acfplot, raftery.diag, geweke.diag, heidel.diag, levelplot, cumuplot, traceplot, densityplot.mcmc, densityplot.mcmc.list, autocorr, varnames, xyplot.mcmc, xyplot.mcmc.list, qqmath.mcmc, qqmath.mcmc.list)
importFrom(coda, HPDinterval, acfplot, raftery.diag, geweke.diag, heidel.diag, cumuplot, traceplot, autocorr, varnames, read.openbugs)
importFrom(lattice, histogram, panel.histogram, panel.densityplot, panel.lines, xyplot, panel.xyplot, panel.curve, qqmath, levelplot, densityplot)

importFrom("stats", "dbinom", "dgamma", "dnorm", "pnorm", "qbinom", "qgamma",

useDynLib(polyapost, .registration = TRUE, .fixes = "C_")

importFrom("stats", "complete.cases", "cor", "dnorm", "na.omit",
"optim", "optimise", "pchisq", "pnorm", "qnorm", "sd")

"optim", "optimise", "pchisq", "pnorm", "qnorm", "sd", "coef")

importFrom("stats", "coef", "deriv", "poly", "predict")

importFrom("graphics", "lines", "par", "plot", "points", "grid")

useDynLib(polynomial, .registration = TRUE, .fixes = "C_")
export(gcd, pgcd, lcm, plcm, coprime, pcoprime)

exportMethods(estimatePloidy, Samples, "Samples<-", Loci, "Loci<-", PopInfo,
"PopInfo<-", PopNames, "PopNames<-", Ploidies, "Ploidies<-",
"Usatnts<-", deleteSamples, deleteLoci, Missing, "Missing<-",
Description, "Description<-", PopNum, "PopNum<-", Genotype,
"Genotype<-", Genotypes, "Genotypes<-", isMissing, viewGenotypes,
editGenotypes, Present, "Present<-", Absent, "Absent<-", summary,