useDynLib(hyper2, .registration=TRUE)

import("Rdpack")
importFrom("Rdpack",reprompt)

exportPattern("^[[:alpha:]]+")

importFrom(Rcpp, evalCpp)
importFrom("stats", "constrOptim","runif","rnorm","pchisq","rgamma")
importFrom("utils", "head")
importFrom("partitions","perms")
importFrom("magrittr", "%>%", "%<>%")
importFrom("cubature", "adaptIntegrate")
importFrom("graphics", "abline", "par", "text","points")

importFrom("disordR","disord")
importFrom("disordR","hashcal")
importFrom("disordR","consistent")
importFrom("disordR","elements")
importFrom("disordR","is.disord")
importFrom("disordR","lapply")

importFrom("alabama","constrOptim.nl")

importFrom("calibrator","MH")

import(methods)
import(mathjaxr)

export(hyper2_add)
export(size)
export(brackets)
export(powers)
export(pnames)
  
S3method(brackets,hyper2)
S3method(powers,hyper2)
S3method("powers<-",hyper2)
S3method(pnames,hyper2)
S3method(pnames,suplist)
S3method("pnames<-",hyper2)

S3method(print,ranktable)
S3method(print,ranktablesummary)
S3method(print,hyper2test)

S3method("[", hyper2)
S3method("[<-", hyper2)

S3method(Ops,hyper2)
S3method(sum,hyper2)
S3method(print,hyper2)
S3method(head,hyper2)
S3method(length,hyper2)
S3method(summary,ranktable)

S3method(Ops,suplist)
S3method(sum,suplist)

S3method(Ops,lsl)

S3method("print",summary.hyper2)
S3method("summary",hyper2)



S3method(print,hyper3)
S3method("powers<-",hyper3)
S3method(Ops,hyper3)
S3method("[", hyper3)
S3method("[<-", hyper3)
S3method("weights", hyper3)
S3method("pnames<-",hyper3)
