useDynLib("AdaptFitOS", .registration=TRUE)

# Export all names
#exportPattern(".")
exportPattern("asp")
exportPattern("spm")
export(airls.ridge, almeAux,arg.searchOS,bdiag,default.knots,scbM,scbTest,sigma)
# Import all packages listed as Imports or Depends
import(
  SemiPar,
  MASS,
  nlme,
  splines
)

importFrom(mgcv, Predict.matrix)
importFrom(mgcv, get.var)
  importFrom("grDevices", "dev.interactive", "devAskNewPage", "grey")
  importFrom("graphics", "abline", "lines", "par", "points", "polygon")
  importFrom("stats", "as.formula", "binomial", "contrasts", "dist",
             "fitted", "glm", "glm.fit", "integrate", "lm",
             "model.matrix", "poisson", "pt", "quantile", "var")


S3method(plot, scbm)
S3method(plot, scbTest)
S3method(print, asp)
S3method(plot, asp)
S3method(summary, asp)
S3method(predict, asp)
S3method(fitted, asp)
S3method(residuals, asp)


S3method(Predict.matrix, lme)
S3method(Predict.matrix, ospline.smooth)
S3method(Predict.matrix, tlspline.smooth)
#S3method(smooth.construct, os.smooth.spec)
#S3method(smooth.construct, tl.smooth.spec)


