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

importFrom("graphics", "abline", "axTicks", "axis", "barplot", "box",
"contour", "image", "legend", "lines", "mtext", "par", "plot",
"plot.new", "plot.window", "points", "rect", "text", "title")
importFrom("stats", "D", "as.formula", "cor", "lm", "loess.smooth",
"na.omit", "qqline", "qqnorm", "sd", "splinefun", "uniroot")
importFrom("utils", "browseURL", "capture.output", "combn", "demo",
"example", "head", "installed.packages", "read.csv", "tail",

"na.omit", "predict.lm", "qqline", "qqnorm", "sd", "splinefun",

## Export all names except those beginning with F_
## (so we don't export F_h2o92 created below)
# exports starting with functions used in vignettes, examples, demos, tests 20170224
"subcrt", "T.units", "P.units", "E.units", "convert",
"species", "affinity", "swap.basis", "diagram", "mosaic",
"read.fasta", "protein.basis", "yeastgfp", "more.aa", "add.protein",
"rho.IAPWS95", "IAPWS95", "water.AW90", "WP02.auxiliary", "water.IAPWS95",
"getrank", "parent", "sciname", "allparents", "getnodes", "getnames",
"qqr", "RMSD", "CVRMSD", "spearman", "DGmix", "DDGmix", "DGtr",
"wjd", "element.potentials", "is.near.equil", "guess", "run.wjd",
# (no other functions are used in the tests)
# other exported functions that are not used above
"DGinf", "SD", "pearson", "shannon", "CV", "logact",
useDynLib(CHNOSZ, .registration = TRUE, .fixes = "F_")

"read.fasta", "protein.basis", "yeastgfp", "yeast.aa", "add.protein",

useDynLib(CHNOSZ, .registration = TRUE, .fixes = "C_")
"heat.colors", "png", "rainbow", "topo.colors", "dev.list",

"CHNOSZ", "thermo", "reset", "obigt", "retrieve", "AkDi"

# 20190420 new R functions for HCL color palettes
if (getRversion() >= "3.6.0") importFrom("grDevices", "hcl.pals", "hcl.colors")

"CHNOSZ", "thermo", "reset", "obigt", "retrieve", "AkDi", "moles",

"CHNOSZ", "thermo", "reset", "OBIGT", "retrieve", "AkDi", "moles",

"CHNOSZ", "thermo", "reset", "OBIGT", "retrieve", "AD", "moles",

export(sharp1d, sharp2d, sharp3d, sharp3dB, pllr, lambda, MISE, numericalDerivative, penlocreg,
importFrom("stats", "approx", "dnorm", "na.omit", "optim", "splinefun", "var")