import(methods, graphics, grid, ggplot2, gridExtra, reshape2)

### The same reason as the pbdMPI. "libzmq.so" should be load before
### "pbdZMQ.so", so use .onLoad and .unLoad in R/zzz.r to handle the shared

importMethodsFrom(Matrix, t, isSymmetric, "%*%", solve, diag, chol, chol2inv, forceSymmetric, "*")

importFrom("stats", "as.formula", "family", "formula", "getCall",
"logLik", "model.matrix", "pchisq", "pf", "pgamma",
"printCoefmat", "quantile", "sigma", "simulate", "terms",

if(getRversion() >= "3.3.0") importFrom("stats", "sigma")

importFrom("parallel", "mclapply", "mcmapply", "makeCluster", "clusterCall", "stopCluster")

importFrom("future", "futureCall", "value", "plan", "multiprocess")

importFrom(stats, as.formula, coef, makepredictcall, na.fail, predict)

importFrom("graphics", "abline", "axis", "points", "segments")

# Generated by roxygen2 (4.1.0): do not edit by hand
export(pcaBootPlot)

# Generated by roxygen2 (4.1.0): do not edit by hand
export(pcaBootPlot)

importFrom("stats", "median", "prcomp", "runif", "var")

# last modified 18 Mar 12 by Victor H Cervantes

# last modified 20 Dic 13 by Carlos A Arias

export(PCAgrid, PCAproj, PCdiagplot, ScaleAdv, cor.fk, covPC,
covPCAgrid, covPCAproj, data.Zou, l1median, l1median_BFGS,
l1median_VaZh, objplot, opt.BIC, opt.TPO, plotcov, qn, sPCAgrid)

"plot.new", "plot.window", "rect", "text", "title")
importFrom("stats", "cov", "cov2cor", "mad", "median", "qchisq",

Qn, s_Qn, scaleTau2 #, Sn, s_Sn, s_mad, s_IQR
## FIXME: do *NOT* export those that are "internal" <--> man/pcalg-internal.Rd

importFrom("utils", str)# for all the help examples
biConnComp, johnson.all.pairs.sp, separates, bfs, connectedComp)
export(getGraph)# our S4 generic including methods
## These are "internal" i.e., in man/pcalg-internal.Rd
## reach, # NB: dreach(), qreach() *are* non-internal

importFrom("bdsmatrix", gchol) ## for jointIda ("MCD")

importFrom("stats", cor, cor.test, cov, cov2cor,
importFrom("graphics", par, plot.default, plot, title)

exportMethods(# needed? "coerce",# <- defined via setAs(., ..) used via  as(A, "class_B")