# last modified 2012-02-23 by M. Salvisberg

# last modified 2014-10-15 by M. Salvisberg

importFrom("stats", "fitted", "optim", "pt", "runif")

import(methods, Matrix, MASS, xtable, testthat)
importFrom(stats, dnorm, pnorm, qnorm, rnorm,
importFrom(stats, dunif, lm, nlminb, optim, sd, var)
importFrom(utils, read.csv, read.table, toLatex, write.table, packageVersion)

importFrom(stabledist, dstable, rstable, pstable, qstable)
importFrom(xtable, xtable, "align<-", "digits<-", "display<-")

importFrom("stats", "aggregate", "coef", "getCall", "model.matrix",
"residuals", "terms", "update.formula", "var", "vcov",

importFrom("graphics", "arrows", "hist", "lines", "mtext", "par","plot", "symbols", "text")

if(.Platform$OS.type == "windows") useDynLib(StanHeaders, .registration = TRUE)

if(.Platform$OS.type == "windows") useDynLib(StanHeaders, .registration = TRUE)
#export(CxxFlags, LdFlags)

if(.Platform$OS.type == "windows") useDynLib(StanHeaders, .registration = TRUE)
#export(CxxFlags, LdFlags)

import(rgl, car, MASS, akima, labdsv, RColorBrewer, vegan, tcltk2, tcltk,

importFrom("stats", "as.formula", "chisq.test", "coefficients", "cor",
"model.matrix", "qchisq", "residuals", "rnorm", "runif",
"sd", "var", "weights", "xtabs", "ftable", "loglin")

"model.matrix", "model.matrix.lm","quantile", "qchisq", "residuals", "rnorm", "runif",
importFrom("graphics", "plot", "lines", "axis", "text", "par")

"cov2cor", "ecdf", "IQR","lm", "mahalanobis", "model.frame",
"sd", "var", "weights", "weighted.mean", "xtabs", "ftable", "loglin")

importFrom("stats", "cor", "density", "dexp", "dnorm", "glm.fit",
"pnorm", "rbinom", "reshape", "rexp", "rmultinom", "rnorm",

### These are solely required, if using source codes:

export(steinertree, generate_st_samples, steiner_simulation, steiner_comparison_plots , steiner_comparison_wilcox)

importFrom("stats", "deviance", "df.residual", "lm", "rnorm")

importFrom("stats", "deviance", "df.residual", "lm", "pf")

importFrom("stats", "deviance", "df.residual", "lm", "pf", "coef", "fitted", "glm", "pchisq")