# Load the shared object
useDynLib(tgp)

# Exports
export(blm, btlm, bcart, bgp, bgpllm, btgp, btgpllm,
       default.itemps, dopt.gp, exp2d.Z, exp2d.rand,
       friedman.1.data, fried.bool, interp.loess, 
       itemps.barplot, hist2bar, lhs, mapT, optim.step.tgp,
       optim.ptgpf, partition, sens, tgp.default.params,
       tgp.design, tgp.trees, mean0.range1)

# Import all packages listed as Imports or Depends
importFrom(maptree, draw.tree)

## required for new CRAN checks
importFrom("grDevices", "rainbow", "terrain.colors")
importFrom("graphics", "abline", "axis", "barplot", "boxplot",
           "contour", "image", "legend", "lines", "mtext", "par",
           "persp", "plot", "points", "segments", "text", "title")
importFrom("stats", "loess", "optim", "optimize", "predict", "proj",
           "rnorm", "runif")
importFrom("utils", "data", "read.table")

# S3
S3method(print, tgp)
S3method(plot, tgp)
S3method(predict, tgp)
S3method(print, tgptraces)
