importFrom("stats", "aov", "lm", "model.frame", "model.matrix",
"model.response", "na.pass", "residuals", "rexp", "rlnorm",

#importFrom("stats4", "coef", "logLik", "plot", "summary", "update")
#importFrom("stats", "anova", "fitted", "formula", "model.matrix", "residuals")

importFrom("stats4", "coef", "logLik", "plot", "summary", "update")
importFrom("stats", "anova", "fitted", "formula", "model.matrix", "residuals")

## importFrom("lattice", "gplot")  ## loading lattice via Depends for now

exportClasses("VarCorr", "glmer", "lmList", "lmer", "summary.lmer")

exportMethods("coef", "confint", "formula", "gsummary", "plot", "show", "update")

#importFrom("utils", head, tail)  ## already available in Matrix

## Mostly generics, for which we define new methods:
residuals, resid, # 'resid' needed too, unfortunately..

## Generics for which we define new methods:
## More imports: functions we use and don't want to be clobbered:
AIC)# ..., rnorm, pnorm, qnorm, ... ... where does it end?
## but  import("stats") is not ok, because Matrix export "better" versions of

## but  import("stats") is not ok, because Matrix exports "better" versions of
## and the rest (S3 generics; regular functions):

S3method(terms, mer)# even though we have it S4 method as well

extractAIC, family, fitted, formula, logLik,
model.matrix, nobs, profile, residuals, simulate, terms,
importFrom("lattice", densityplot, dotplot, qqmath, splom, xyplot)
importFrom("Matrix", drop0, rankMatrix, rBind, sparseMatrix)

importFrom("methods", as, getDataPart, is, new, rbind2, show, slot, slotNames)
deviance, df.residual, dnorm, drop.scope, drop1, extractAIC,
family, fitted, formula, gaussian, getCall, glm,
hatvalues, lm, logLik, model.extract, model.frame,
na.exclude, na.omit, na.pass, napredict, naresid, nlminb,
nobs, optimize, pchisq, pnorm, poisson, ppoints,
predict, printCoefmat, profile, pt, qchisq, qnorm,
qqnorm, qt, quantile, rbinom, reformulate, reorder,
resid, residuals, rgamma, rnbinom, rnorm, rpois,
runif, sd, setNames, simulate, symnum, terms, terms.formula,
update, update.formula, var, vcov, weights)
importFrom("utils", flush.console, packageVersion, stack, str)
## generics we provide methods for and re-export:
importFrom("Matrix", drop0, rankMatrix, sparseMatrix, cBind,rBind,
importClassesFrom("Matrix", corMatrix, dgCMatrix, dpoMatrix, dCHMsimpl)
importMethodsFrom("Matrix", coerce, cov2cor, "%*%", crossprod,tcrossprod,
## currently needed for some eval()ing methods for glmer.nb() objects
export(factorize)  ## needed for qqmath???
## print() and print.summary() utilities -- other [NG]LMM packages can import
## S3method(fortify,merMod)# but don't hide:
## Re-using S3 methods from nlme (for 'lmList') as methods for our 'lmList4':