importFrom("vegan", "protest", "rda")
importFrom("ellipse", "ellipse")
importFrom("grDevices", "rainbow", "adjustcolor")
importFrom("graphics", "abline", "arrows", "axTicks", "axis", "par",
           "plot", "points", "segments", "text", "lines", "polygon",
           "rect","legend")
importFrom("stats", "var", "lm", "qf", "qt", "quantile", "sd","glm","qchisq",
           "cor","predict")
# Import core base stats solvers used across selection and ordination routines
importFrom("stats", "binomial", "poisson", "gaussian", "lm.fit", "glm.fit")
importFrom("stats", "dist", "as.dist", "cov", "median")

# Import combinatorial array utilities
importFrom("utils", "combn")

# Import the core ca package engine for your CA wrapper function
importFrom("ca", "ca")

# Import bootstrap utilities used inside CIplot_uni
importFrom("boot", "boot", "boot.ci")

exportPattern("^[[:alpha:]]+")

# ==============================================================================
# easyCODA Core Functional Exports
# ==============================================================================

# Standalone Calculation and Transformation Utilities
export(PCA)
export(LRA)
export(CA)
export(RDA)
export(ALR)
export(CLR)
export(PLR)
export(SLR)
export(LR.VAR)
export(DUMMY)
export(VAR)

# Diagnostic, Selection and Inversion Routines
export(STEP)
export(STEPR)
export(SUBCO)
export(FINDALR)
export(invALR)
export(invCLR)
export(invSLR)

# Clustering Routines
export(ACLUST)
export(WARD)

# Standalone Master Unified Plotting Canvases
export(PLOT)
export(PLOT.RDA)
export(DOT)
export(BAR)
export(CIplot_biv)
export(CIplot_uni)

# ==============================================================================
# S3 Method Generic Overload Registrations
# ==============================================================================

# Automatically routes summary() overloads to print clean terminal reports
S3method(summary, STEPR)
S3method(summary, STEP)
S3method(summary, RDA)
S3method(summary, SUBCO)
S3method(summary, FINDALR)
S3method(print, summary.STEP)
