Skip to content
Prev 46355 / 63424 Next

Multiple return values / bug in rpart?

I don't remember what rpartpl once did myself; as you point out it is a routine that is no 
longer used and should be removed.  I've cc'd Brian since he maintains the rpart code.

Long ago return() with multiple arguments was a legal shorthand for returning a list.  
This feature was depricated in Splus, I think even before R rose to prominence.  I vaguely 
remember a time when it's usage generated a warning.

The fact that I've never noticed this unused routine is somewhat embarrassing.  Perhaps I 
need a "not documented, never called" addition to R CMD check to help me along.

Terry Therneau