## workaround S4-Group(generic|method) quirk: R/AllGeneric.R
## needs setGeneric(*, group=) and this for all non-Primitives :

importFrom("utils", "head", "tail")     ## lmer-related
exportClasses("coef.lmer", "lmer", "mer", "pedigree", "ranef.lmer",
"fixef", "formula", "head", "lmer", "logLik", "mcmcsamp",
"resid", "simulate", "summary", "tail", "terms", "update",

useDynLib(Matrix, .registration=TRUE)# <-> R 2.3.0 or later

exportClasses("coef.lmer", "glmer", "lmer", "mer", "pedigree", "ranef.lmer",

"replValue", # if we don't export it, things fail in dispatch

## --- 'Matrix' mother and all its daughters : ---------------
## --- inheriting "Matrix", but also factorizations:
## --- 'MatrixFactorization' mother and all its daughters : ---

"summary", "terms", "update", "vcov", "VarCorr", "with")

exportClasses("lmer", "lmer.ranef", "mer", "summary.mer", "summary.lmer")

## must provide them for 'hierarchy-analysis':

importFrom("methods", Arith, Compare, Logic, Math, Math2, Summary, Complex)

## Maybe {Doug prefers having only cBind/rBind}?
## substitute for using  cbind() / rbind()

"colMeans", "colSums", ## these needed a "..." added
"sparseVector", ## --- and daughters : ---

if(getRversion() < "2.6.0" || R.version$`svn rev` < 42093) {
"xsparseVector" # the class union of all 'x' lost sparseVector's
"print",# print(x, ...) when show(x) is not sufficient

## Import non-base functions we need explicitly,
importFrom("grid", grid.rect, gpar, grob)# others via 'grid::'
importFrom("methods", Ops, Arith, Compare, Logic, Math, Math2, Summary, Complex)
##NOT_YET "det", # = a copy of base::det() but with Matrix namespace
exportMethods(## for both own and "other" generics:

if(R.version$`svn rev` < 48201) ## later: if(getRversion() < "2.9.0")
export(".selectSuperClasses")## sync with ---> R/zzz.R

if(getRversion() < "2.10.0")# The version of R -- at *install* time (!)

## "colMeans", "colSums", ## these needed a "..." added
if(getRversion() < "2.11.0" || R.version$`svn rev` < 51000)
##                                               ----- FIXME exact number
S3method(c, abIndex)# < for now -- S4 method on c() seems "difficult"