#useDynLib(SNSequate, .registration=TRUE, .fixes = "F_")

import(DoE.base, except=c("lm", "aov", "lm.design", "aov.design", "lm.formula", "aov.formula", "lm.default", "aov.default"))

importFrom(graphics, abline, box, layout, legend, par,
plot, plot.new, polygon, rect, text, title)
importFrom(stats, aov, as.dist, chisq.test, cmdscale,
cutree, dist, hclust, pf, princomp, quantile,

importFrom("graphics", "image", "par", "plot", "lines")
importFrom("stats", ".getXlevels", "as.formula", "contrasts", "family",
"gaussian", "glm", "model.frame", "model.matrix", "na.pass",
"predict.lm", "qqline", "qqnorm", "reformulate", "terms",
export(sop, f, ad, rae, sop.control, sop.fit)

importFrom("stats", "approx", "ks.test", "median", "optimise", "punif",

importFrom("stats", "approx", "ks.test", "median", "optimise", "punif","runif")

importFrom("stats", "binomial", "fitted", "formula", "gaussian", "glm",
"model.response", "na.pass", "pnorm", "predict", "terms")

# Not exported: hdi, e2dist, plotDetFunc

importFrom("graphics", "grid", "lines", "par", "plot", "points", "strwidth", "text")
importFrom("stats", "na.omit", "rnorm", "runif", "sd")

export(SPCAvRP, SPCAvRP_parallel, SPCAvRP_ranking, select_projection, project_covariance, final_estimator)

export(SPCAvRP, SPCAvRP_parallel, SPCAvRP_ranking, select_projection, project_covariance, final_estimator, SPCAvRP_subspace, SPCAvRP_deflation, select_projections_subspace)

importFrom("stats", "na.omit", "pchisq", "pf", "pnorm", "qnorm","rnorm",

importFrom("stats", "dbeta", "dbinom", "dpois", "qnorm", "quantile")

importFrom(graphics, par, mtext, legend, text, boxplot, image, plot, axis, rect, polygon, points)
importFrom(grDevices, terrain.colors, jpeg, dev.off, dev.new)
importFrom(raster, raster, writeRaster, setValues, res, resample, xmin, ymin, xmax, ymax)

importFrom(raster, raster, merge, writeRaster, setValues, res, resample, xmin, ymin, xmax, ymax, as.matrix)

importFrom('graphics', 'abline', 'grid', 'lines', 'par', 'plot',
importFrom('stats', 'cycle', 'embed', 'end', 'frequency', 'is.ts',
'optim', 'pnorm', 'qnorm', 'sd', 'start', 'ts', 'window')