## Dynamic C-code Library.
useDynLib(randomForestSGT, .registration = TRUE)

importFrom("parallel", mclapply)
importFrom("randomForestSRC", "rfsrc")
importFrom("stats", "runif", "as.formula", "formula", "na.omit", "model.matrix", "sd", "var")
importFrom("stats", "rnorm", "setNames")
importFrom("utils", "tail", "combn", "capture.output")
importFrom("varPro", "varpro", "get.orgvimp", "get.vimp", "cv.varpro")

export(rfsgt,
       cdlasso,
       cdlasso.rfsgt,
       filter.rfsgt,
       filter.custom.rfsgt,
       get.beta,
       make.baselearner,
       predict.rfsgt,
       print.rfsgt,
       print.vimp.rfsgt,
       rfsgt.news,
       tune.hcut,
       use.tune.hcut,
       vimp.rfsgt)


S3method(predict, rfsgt)
S3method(print, rfsgt)
S3method(print, vimp.rfsgt)
