exportClasses("NMixPlugCondDensJoint2", "NMixPlugCondDensMarg", "NMixPlugDensJoint2", "NMixPlugDensMarg", "NMixPredCDFMarg", "NMixPredCondCDFMarg", "NMixPredCondDensJoint2", "NMixPredCondDensMarg", "NMixPredDensJoint2", "NMixPredDensMarg")
export("BLA", "BsBasis", "MatMPpinv", "MatSqrt", "SP2Rect", "autolayout", "cbplot", "generatePermutations", "getProfiles", "plotProfiles")

importFrom(splines,  "bs")               ## In: BsBasis
importFrom(mnormt,   "pmnorm")           ## In: NMixPseudoGOF.default
importFrom(parallel, "detectCores", "makeCluster", "parLapply", "stopCluster")      ## In: GLMM_MCMC, NMixMCMC, NMixRelabel.GLMM_MCMClist
#importFrom(lme4, "lmer", "glmer", "fixef", "VarCorr", "ranef", "glmerControl")      ## In: GLMM_MCMCifit
### From lme4, we additionally use: vcov, which is defined in the lme4 (1.0-4) NAMESPACE as:
### Telling importFrom(lme4, "vcov") here causes error: objects `vcov' are not exported by 'namespace:lme4'
### I guess that by importing the merMod class, it is no more necessary import vcov explicitely...
importFrom(fastGHQuad, "gaussHermiteData", "aghQuad")           ## In: fitted.GLMM_MCMC
importFrom(coda, "mcmc", "HPDinterval")                         ## In: NMixCluster.GLMM_MCMC
# Import full packages where more functions are used
# as of 3.6: I again import full lme4 since selective import above did not import

importFrom(parallel, "detectCores", "makeCluster", "parLapply", "stopCluster")            ## In: GLMM_MCMC, NMixMCMC, NMixRelabel.GLMM_MCMClist
importFrom(lme4, "lmer", "glmer", "fixef", "vcov", "VarCorr", "ranef", "logLik")          ## In: GLMM_MCMCifit, fitted.GLMM_MCMC

importFrom(lme4, "lmer", "glmer", "fixef", "VarCorr", "ranef", "glmerControl")      ## In: GLMM_MCMCifit

importFrom(coda, "mcmc", "HPDinterval")                         ## In: NMixCluster.GLMM_MCMC, GLMM_longitDA2

importFrom(graphics, "axis", "image", "layout", "legend", "lines", "matplot", "par", "points", "segments", "title")
importFrom(stats, "binomial", "coef", "dnorm", "formula", "glm", "lm", "median", "optim", "pnorm", "poisson", "quantile", "rgamma", "rnorm", "runif", "sd", "var", "vcov")