## export(make.mkn.deriv) # not working right now

## Import Rcpp so that .onLoad can load the modules.

useDynLib(divest, .registration = TRUE, .fixes = "C_")

importFrom("grDevices", "dev.copy", "dev.off", "pdf", "rainbow")

export(cvg, i.inp, li, ji, rd, srd, mh, pg, pg.ht, i.in, dp, ens, dp.ht, ens.ht)

useDynLib('dixonTest', .registration = TRUE, .fixes = "F_")

useDynLib('dixonTest', .registration = TRUE, .fixes = 'Dixon_')

importFrom("stats", "coef", "cov", "density", "median", "quantile", "rnorm", "runif")

export(arms, ARtransPars, as.dlm, bdiag, convex.bounds, is.dlm,

rwishart, mcmcMean, mcmcSD, ergMean, FF, "FF<-", V, "V<-",

rwishart, mcmcMean, mcmcSD, ergMean, "%+%", dropFirst,

rwishart, mcmcMean, mcmcMeans, mcmcSD, ergMean, "%+%", dropFirst,

useDynLib(dlm, .registration = TRUE, .fixes = "C_")
importFrom("graphics", "abline", "mtext", "par", "plot")
importFrom("stats", "Box.test", "acf", "end", "frequency", "is.ts",
"na.pass", "optim", "rchisq", "residuals", "rgamma",
"rnorm", "runif", "start", "ts", "tsdiag", "tsp", "tsp<-", "var",

export(dlcross, dlmap.asreml, dlmap.lme, ngen, nmrk, nphen, profileplot)

export(dlcross, dlmap.asreml, dlmap.lme, ngen, nmrk, nphen, profileplot, calc.pos)

export(dlcross, dlmap, ngen, nmrk, nphen, profileplot, calcpos)

# old functions kept for compatibility, exported

export(applyDiff, unirootTest, EM.imputation, dlaglm, dlsem, lagPlot, isIndep, pathCoeff, pathAnal)
importFrom("graphics", "abline", "axis", "box", "grid", "legend","mtext", "par", "points", "polygon")
importFrom("stats", "coefficients", "cov", "extractAIC", "formula","lm", "model.matrix", "na.omit", "pnorm", "predict", "qnorm", "quantile", "residuals", "rnorm", "smooth.spline", "var", "vcov")

importFrom("stats", "coefficients", "cov", "extractAIC", "formula","lm", "model.matrix", "na.omit", "pnorm", "predict", "qnorm", "quantile", "residuals", "rnorm", "smooth.spline", "sd","var", "vcov")

importFrom("stats", "coefficients", "cov", "extractAIC", "formula","lm", "model.matrix", "na.omit",
"pnorm", "predict", "qnorm", "quantile", "residuals", "rnorm", "smooth.spline", "sd", "var", "vcov",