From kirill.mueller at ivt.baug.ethz.ch  Wed Aug 13 12:51:41 2014
From: kirill.mueller at ivt.baug.ethz.ch (=?UTF-8?B?S2lyaWxsIE3DvGxsZXI=?=)
Date: Wed, 13 Aug 2014 12:51:41 +0200
Subject: [Rd] Request to review a patch for rpart
Message-ID: <53EB433D.5020101@ivt.baug.ethz.ch>

Dear list


For my work, it would be helpful if rpart worked seamlessly with an 
empty model:

library(rpart); rpart(formula=y~0, data=data.frame(y=factor(1:10)))

Currently, an unrelated error (originating from na.rpart) is thrown.

At some point in the near future, I'd like to release a package to CRAN 
which uses rpart and relies on that functionality. I have prepared a 
patch (minor modifications at three places, and a test) which I'd like 
to propose for inclusion in the next CRAN release of rpart. The patch 
can be reviewed at https://github.com/krlmlr/rpart/tree/empty-model, the 
files (based on the current CRAN release 4.1-8) can be downloaded from 
https://github.com/krlmlr/rpart/archive/empty-model.zip.

Thanks for your attention.


With kindest regards

Kirill M?ller



[Rd] Request to review a patch for rpart
=?UTF-8?B?S2lyaWxsIE3DvGxsZXI=?=