#Export everything, 'cuz that's how we roll

#Export everything except symbols that start with '.' or end with '_R'.
# the %c% operator may have already been defined by the sna library if loaded first
# but we can't figure out a way to conditionally export it
# explicity export only a subset of functions

# These are not 'real' S3 methods, as there is no corresponding class
# but they are dispatched by as.matrix.network and are flagged by check

importFrom("graphics", "locator", "par", "plot", "polygon", "rect",
# but they are dispatched by as.matrix.network and are flagged by check if not marked here

# TODO: Don't export as.edgelist.matrix once no one depends on it.

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

# these are NOT S3 methods, but are included here because its the

export(neuralnet, gwplot, plot.nn, print.nn, compute)

export(neuralnet, gwplot, plot.nn, print.nn, compute, confidence.interval, prediction)

importFrom(stats, "rnorm", "runif", "coef", "p.adjust", "pnorm", "terms", "ecdf")

importFrom(stats, "rnorm", "runif", "coef", "p.adjust", "pnorm", "terms", "ecdf", "qnorm")

importFrom(tm, "readPDF", "Corpus", "TermDocumentMatrix", "findFreqTerms")
importFrom(stats, "rnorm", "runif", "coef", "p.adjust", "pnorm", "terms", "ecdf", "qnorm", "predict", "median", "sd")

##importFrom("graphics", "abline", "boxplot", "lines", "par", "plot", "points")
importFrom("stats", coef, cor, dnorm, pnorm, predict,

quantile, rbeta, residuals, rnorm, sd, var)
importFrom("graphics", abline, lines, par, points, text)

useDynLib(ngram, ng_extract_ngrams, ng_extract_str, ng_print, ng_process, R_ngram_gen, R_ngram_get_seed, R_ngram_wordcount, R_ng_get_phrasetable, R_stringsummary, ng_asweka)

importFrom(stats, .getXlevels, binomial, cov, dbinom,
dnorm, dpois, gaussian, glm, model.matrix,
quantile, rgamma, rnorm, runif, vcov, weights)

quantile, rgamma, rnorm, runif, vcov, weights,

importFrom("stats", "kmeans", "numericDeriv", "optimize", "pchisq",

## importFrom(graphics, persp, abline, plot)
## importFrom(stats, mahalanobis, cor, cov, pchisq, plnorm, pnorm, qchisq, qnorm, shapiro.test, var)