importFrom(ggplot2, ggplot, geom_blank, theme_minimal, geom_line, geom_point, geom_text, element_line, aes, aes_string, xlab, scale_x_continuous, scale_y_continuous, theme, element_blank, ylab, coord_flip, guides, guide_legend, geom_ribbon, facet_grid, scale_color_manual)

importFrom("stats", "cor", "pnorm", "pt", "runif")
importFrom("methods", "show", "new", "representation", "setClass", "setMethod")

exportPattern("^[[:alpha:]]+")
import(parallel)
importFrom("grDevices", "dev.new")
importFrom("graphics", "abline", "axis", "legend", "lines", "mtext",
"par", "plot", "points", "segments", "title")
importFrom("stats", "complete.cases", "convolve", "dpois", "ks.test",
"pnorm", "ppois", "quantile", "rexp", "rmultinom", "rnorm",
"rpois", "runif")

exportPattern("^[[:alpha:]]+")
import(parallel)
importFrom("grDevices", "dev.new")
importFrom("graphics", "abline", "axis", "legend", "lines", "mtext",
"par", "plot", "points", "segments", "title","text")
importFrom("stats", "complete.cases", "convolve", "dpois", "ks.test",
"pnorm", "ppois", "quantile", "rexp", "rmultinom", "rnorm",
"rpois", "runif","cor.test", "median", "rbinom", "setNames")
importFrom("utils", "combn")

importFrom("stats", "dnorm", "optim", "pchisq", "pnorm", "rnorm",
export(A.dep.tests, dependogram, mdcov, .sinint, .Cnhatmat, .mdcov.lambdas, .mdcov.pval)

export("IndexComp", "SwitchDates", "IndexUpdate", "RelativeWeights", "IndexMemberSelection", "IndexMembersUpdate",
"CRIX", "ECRIX", "EFCRIX", "LCRIX", "LECRIX", "LEFCRIX"

export("indexComp", "switchDates", "indexUpdate", "relativeWeights", "indexMemberSelection", "indexMembersUpdate"

importFrom("stats", "cutree", "dist", "hclust", "optim")

importFrom(stats, chisq.test, complete.cases, kmeans, pchisq, var)

importFrom("graphics", "abline", "axis", "curve", "filled.contour", "lines", "par", "plot", "points", "plot.new")
importFrom("stats", "deviance", "glm", "var", "as.formula", "cov", "dnorm", "fitted", "optim", "pchisq", "pnorm", "predict", "qchisq", "runif", "uniroot")
importFrom("stats", "binomial", "poisson", "constrOptim", "dchisq")
export(init_grid) # from blackbox, needs to be doc'ed in Infusion itself as it is explicitly used in doc