useDynLib(EnvCpt)
import(methods)
import(graphics)
importFrom(MASS,fitdistr)
import(changepoint)
importFrom(utils, txtProgressBar,setTxtProgressBar)
importFrom(stats, arima,AIC,BIC,lm,is.ts,ts, var, complete.cases, fitted.values)
importFrom(zoo, index, coredata)
importFrom(grDevices, rainbow,col2rgb)

export("envcpt")
export("AICweights")

S3method(plot,envcpt)
S3method(AIC,envcpt)
S3method(BIC,envcpt)
S3method(AICweights,envcpt)
S3method(AICweights,default)
