useDynLib(rpart, .registration = TRUE, .fixes = "C_")

export(meanvar, na.rpart, path.rpart, plotcp, post, printcp, prune,
       prune.rpart, rpart, rpart.control, rsq.rpart, snip.rpart, xpred.rpart)
export(rpart.exp)  # needed for one of the tests

importFrom(graphics, plot, text)
importFrom(stats, model.frame, predict, residuals)

S3method(labels, rpart)
S3method(meanvar, rpart)
S3method(model.frame, rpart)
S3method(plot, rpart)
S3method(post, rpart)
S3method(predict, rpart)
S3method(print, rpart)
S3method(prune, rpart)
S3method(residuals, rpart)
S3method(summary, rpart)
S3method(text, rpart)

