importFrom("stats", coef, logLik, predict, residuals)

importFrom(graphics, abline, axis, lines, par, plot,
importFrom(stats, dbeta, dnorm, optim, optimize, pgamma,
pnorm, ppoints, qexp, qnorm, qt, quantile,

importFrom("stats", "approx", "cov", "rbeta", "rgamma", "rmultinom", "rnorm", "runif", "var")

importFrom("stats", "contrasts", "cor", "model.matrix","model.response", "pt")

export("lw_tf", "lw_logtf", "lw_bintf", "gw_normalisation", "gw_idf", "gw_gfidf", "entropy", "gw_entropy")

#export("stopwords_ar", "stopwords_de", "stopwords_en", "stopwords_fr", "stopwords_nl", "stopwords_pl")

useDynLib(lsei)
export(nnls, pnnls, ldp, lsei, lsi, hfti)

useDynLib(lsei)
export(nnls, pnnls, ldp, lsei, lsi, hfti, qp, pnnqp)

export(nnls, pnnls, ldp, lsei, lsi, hfti, qp, pnnqp, indx, matMaxs)

importFrom("graphics", "abline", "axis", "grid", "legend", "lines","curve",
"qchisq", "qnorm", "terms", "uniroot", "update", "vcov", "coefficients", "cor")

# 'requireNamespace' block below allows me to put multcomp in
if (requireNamespace("multcomp", quietly = TRUE)) {
#S3method(cld, lsmobj) # Appears later outside this block
# Gotta have the generic for cld, whether or not multcomp is attacjed
if (requireNamespace("plyr", quietly = TRUE)) {
lsmeans.character,  # because it is a generic
# but commenting out the ones used only interally
#S3method(glht, lsmlf)   # in namespace block above
#S3method(modelparm, lsmwrap) # in namespace block above

#S3method(cld, ref.grid) # Appears later outside this block
# interim support for old lsmeans function

export(cld) # need user to see it even if multcomp not loaded

if (requireNamespace("coda", quietly = TRUE)) {
# S3 methods for recover.data and lsm.basis that are needed by other packages
S3method(lsm.basis, mlm) # recover.data for mlm uses lm

# From default packages (new req from CRAN, July 2015)
importFrom("stats", "as.formula", "coef", "complete.cases", "confint", "cov", "cov2cor", "delete.response", "deriv", "family", "lm", "make.link", "model.frame", "model.matrix", "na.omit", "na.pass", "p.adjust", "p.adjust.methods", "pchisq", "pf", "poly", "predict", "pt", "ptukey", "qf", "qt", "qtukey", "reformulate", "terms", "uniroot", "update", "vcov")