Changed gTree$prediction to gTree[,"prediction"]
Test whether labelVar=T is present in as.tree
Fixed class check in plot.reprtree
Changed order of as.tree$frame to order of binary form of row.name(as.tree$frame) to get
plot in right order
Changed condition on class test

It was reversed
allow arguments to pass to text.tree
Fixed plots, passed R check