Binary files /tmp/tmpiXPHNF/qFZcGBgvMJ/rpart-4.1-13/build/vignette.rds and /tmp/tmpiXPHNF/F6rKRqga10/rpart-4.1-15/build/vignette.rds differ diff -Nru rpart-4.1-13/ChangeLog rpart-4.1-15/ChangeLog --- rpart-4.1-13/ChangeLog 2018-01-08 11:02:15.000000000 +0000 +++ rpart-4.1-15/ChangeLog 2019-04-10 18:49:34.000000000 +0000 @@ -1,3 +1,10 @@ +2019 Apr 10 4.1-15 Update saved results because of changes to R random number generators +2018 Jul 31 4.1-14 Change post.rpart.Rd example so as to not write outside tempdir() + Changed name of solder to solder.balance and added in solder from the + survival package (larger than solder.balance). Now data matches between + packages. + Modified vignettes slightly + 2018 Jan 08 4.1-12 Merge ChangeLog files 2017 Mar 12 4.1-11 Include directly-needed headers, update o/p for R Binary files /tmp/tmpiXPHNF/qFZcGBgvMJ/rpart-4.1-13/data/solder.rda and /tmp/tmpiXPHNF/F6rKRqga10/rpart-4.1-15/data/solder.rda differ Binary files /tmp/tmpiXPHNF/qFZcGBgvMJ/rpart-4.1-13/data/solder.tab.gz and /tmp/tmpiXPHNF/F6rKRqga10/rpart-4.1-15/data/solder.tab.gz differ diff -Nru rpart-4.1-13/debian/changelog rpart-4.1-15/debian/changelog --- rpart-4.1-13/debian/changelog 2019-04-27 15:31:13.000000000 +0000 +++ rpart-4.1-15/debian/changelog 2019-04-27 15:31:13.000000000 +0000 @@ -1,452 +1,146 @@ -rpart (4.1-13-1cranBionic0) bionic; urgency=medium +rpart (4.1-15-1cran1bionic0) bionic; urgency=medium - * Compilation for Ubuntu 18.04 LTS + * Compilation for Ubuntu 18.04.2 LTS - -- Michael Rutter Sun, 29 Apr 2018 02:01:05 +0000 + -- Michael Rutter Sat, 27 Apr 2019 15:29:13 +0000 -rpart (4.1-13-1) unstable; urgency=medium +rpart (4.1-15-1cran1) testing; urgency=low - * New upstream release + * cran2deb svn: 362M with DB version 1. - -- Dirk Eddelbuettel Fri, 23 Feb 2018 07:05:23 -0600 + -- cran2deb4ubuntu Sun, 14 Apr 2019 09:51:52 -0400 -rpart (4.1-12-1) unstable; urgency=medium - * New upstream release - - * debian/control: Set Build-Depends: to current R version - * debian/control: Set Standards-Version: to current version - * debian/compat: Set level to 9 +rpart (4.1-9-1cran1) testing; urgency=low - -- Dirk Eddelbuettel Sat, 20 Jan 2018 17:04:18 -0600 + * cran2deb svn: 362M with DB version 1. -rpart (4.1-11-1) unstable; urgency=medium + -- cran2deb4ubuntu Sat, 14 Feb 2015 08:36:31 -0500 - * New upstream release - * debian/control: Set Build-Depends: to current R version - * debian/control: Add Depends: on ${misc:Depends} +rpart (4.1-8-1cran1) testing; urgency=low - -- Dirk Eddelbuettel Fri, 21 Apr 2017 11:33:42 -0500 + * cran2deb svn: 362M with DB version 1. -rpart (4.1-10-2) unstable; urgency=medium + -- cran2deb4ubuntu Sat, 29 Mar 2014 09:13:51 -0400 - * debian/compat: Created (Closes: #830340) - - * debian/control: Set Build-Depends: to current R version - * debian/control: Set Standards-Version: to current version - -- Dirk Eddelbuettel Fri, 08 Jul 2016 06:40:47 -0500 +rpart (4.1-6-1cran1) testing; urgency=low -rpart (4.1-10-1) unstable; urgency=low + * cran2deb svn: 362M with DB version 1. - * New upstream release + -- cran2deb4ubuntu Sat, 08 Mar 2014 08:33:25 -0500 - * debian/control: Set Build-Depends: to current R version - -- Dirk Eddelbuettel Tue, 30 Jun 2015 08:50:46 -0500 +rpart (4.1-5-1cran1) testing; urgency=low -rpart (4.1-9-1) unstable; urgency=low + * cran2deb svn: 362M with DB version 1. - * New upstream release - - * debian/control: Set Build-Depends: to current R version - * debian/control: Set Standards-Version: to current version + -- cran2deb4ubuntu Sat, 25 Jan 2014 18:31:16 -0500 - -- Dirk Eddelbuettel Wed, 11 Feb 2015 07:10:41 -0600 -rpart (4.1-8-1) unstable; urgency=low +rpart (4.1-4-1cran1) testing; urgency=low - * New upstream release + * cran2deb svn: 362M with DB version 1. - -- Dirk Eddelbuettel Fri, 28 Mar 2014 06:34:50 -0500 + -- cran2deb4ubuntu Sat, 21 Dec 2013 16:18:48 -0500 -rpart (4.1-7-1) unstable; urgency=low - * New upstream release +rpart (4.1-3-1cran1) testing; urgency=low - -- Dirk Eddelbuettel Mon, 24 Mar 2014 06:33:56 -0500 + * cran2deb svn: 362M with DB version 1. -rpart (4.1-6-1) unstable; urgency=low + -- cran2deb4ubuntu Sat, 07 Sep 2013 21:41:19 -0400 - * New upstream release - * debian/control: Set Build-Depends: to current R version +rpart (4.1-2-1cran1) testing; urgency=low - -- Dirk Eddelbuettel Sat, 08 Mar 2014 08:01:16 -0600 + * cran2deb svn: 362M with DB version 1. -rpart (4.1-5-1) unstable; urgency=low + -- cran2deb4ubuntu Thu, 15 Aug 2013 12:15:28 -0400 - * New upstream release - -- Dirk Eddelbuettel Sat, 25 Jan 2014 16:11:35 -0600 +rpart (4.1-13-1cran1) testing; urgency=low -rpart (4.1-4-1) unstable; urgency=low + * cran2deb svn: 362M with DB version 1. - * New upstream release + -- cran2deb4ubuntu Sat, 24 Feb 2018 09:45:54 -0500 - * debian/control: Set Build-Depends: to current R version - * debian/control: Set Standards-Version: to current version - -- Dirk Eddelbuettel Tue, 10 Dec 2013 13:40:10 -0600 +rpart (4.1-12-1cran1) testing; urgency=low -rpart (4.1-3-1) unstable; urgency=low + * cran2deb svn: 362M with DB version 1. - * New upstream release + -- cran2deb4ubuntu Sat, 13 Jan 2018 09:33:50 -0500 - -- Dirk Eddelbuettel Mon, 02 Sep 2013 12:44:57 -0500 -rpart (4.1-2-1) unstable; urgency=low +rpart (4.1-11-1cran1) testing; urgency=low - * New upstream release - - * debian/control: Set Build-Depends: to current R version + * cran2deb svn: 362M with DB version 1. - -- Dirk Eddelbuettel Thu, 15 Aug 2013 08:46:06 -0500 + -- cran2deb4ubuntu Sat, 22 Apr 2017 09:53:57 -0400 -rpart (4.1-1-2) unstable; urgency=low - * debian/control: Set Build-Depends: to current R version - - * (Re-)building with R 3.0.0 (beta) +rpart (4.1-10-1cran1) testing; urgency=low - -- Dirk Eddelbuettel Tue, 26 Mar 2013 06:28:23 -0500 + * cran2deb svn: 362M with DB version 1. -rpart (4.1-1-1) unstable; urgency=low + -- cran2deb4ubuntu Sun, 05 Jul 2015 21:25:40 -0400 - * New upstream release - * debian/control: Set Build-Depends: to current R version +rpart (4.1-1-1cran1) testing; urgency=low - -- Dirk Eddelbuettel Wed, 20 Mar 2013 08:22:22 -0500 + * cran2deb svn: 362M with DB version 1. -rpart (4.1-0-1) unstable; urgency=low + -- cran2deb4ubuntu Sun, 24 Mar 2013 20:14:24 -0400 - * New upstream release - -- Dirk Eddelbuettel Thu, 29 Nov 2012 15:54:07 -0600 +rpart (4.1-0-1cran1) testing; urgency=low -rpart (4.0-3-1) unstable; urgency=low + * cran2deb svn: 362M with DB version 1. - * New upstream release + -- cran2deb4ubuntu Sun, 09 Dec 2012 12:34:35 -0500 - -- Dirk Eddelbuettel Sun, 18 Nov 2012 14:19:02 -0600 -rpart (4.0-2-1) unstable; urgency=low +rpart (4.0-3-1cran1) testing; urgency=low - * New upstream release + * cran2deb svn: 362M with DB version 1. - * debian/control: Set Build-Depends: to current R version + -- cran2deb4ubuntu Mon, 26 Nov 2012 11:59:16 -0500 - -- Dirk Eddelbuettel Wed, 14 Nov 2012 08:55:43 -0600 -rpart (4.0-1-1) unstable; urgency=low +rpart (4.0-2-1cran1) testing; urgency=low - * New upstream release + * cran2deb svn: 362M with DB version 1. - -- Dirk Eddelbuettel Fri, 26 Oct 2012 12:39:21 -0500 + -- cran2deb4ubuntu Sat, 17 Nov 2012 13:43:39 -0500 -rpart (3.1.55-1) unstable; urgency=low - * New upstream release +rpart (3.1-54-1cran1) testing; urgency=low - * debian/control: Set Standards-Version: to current version + * cran2deb svn: 362M with DB version 1. - -- Dirk Eddelbuettel Sun, 07 Oct 2012 08:45:42 -0500 + -- cran2deb4ubuntu Thu, 28 Jun 2012 11:37:45 -0400 -rpart (3.1.54-1) unstable; urgency=low - * New upstream release +rpart (3.1-53-1cran1) testing; urgency=low - -- Dirk Eddelbuettel Wed, 27 Jun 2012 12:24:02 -0500 + * cran2deb svn: 362M with DB version 1. -rpart (3.1.53-1) unstable; urgency=low + -- cran2deb4ubuntu Mon, 11 Jun 2012 12:01:42 -0400 - * New upstream release - -- Dirk Eddelbuettel Fri, 01 Jun 2012 07:03:08 -0500 +rpart (3.1-52-1cran1) testing; urgency=low -rpart (3.1.52-1) unstable; urgency=low + * cran2deb svn: 362M with DB version 1. - * New upstream release - - * debian/control: Set Build-Depends: to current R version - * debian/control: Change Depends to ${R:Depends} - * debian/control: Set Standards-Version: to current version + -- cran2deb4ubuntu Mon, 14 May 2012 16:44:38 -0400 - -- Dirk Eddelbuettel Sun, 04 Mar 2012 13:07:00 -0600 -rpart (3.1.51-1) unstable; urgency=low +rpart (3.1-50-1cran1) testing; urgency=low - * New upstream release + * cran2deb svn: 362M with DB version 1. - * debian/control: Set (Build-)Depends: to current R version - * debian/control: Set Standards-Version: to current version - - -- Dirk Eddelbuettel Mon, 16 Jan 2012 09:55:37 -0600 - -rpart (3.1.50-1) unstable; urgency=low - - * New upstream release - - * debian/control: Set (Build-)Depends: to current R version - - -- Dirk Eddelbuettel Wed, 13 Apr 2011 18:05:23 -0500 - -rpart (3.1.48-1) unstable; urgency=low - - * New upstream release - - -- Dirk Eddelbuettel Thu, 09 Dec 2010 10:50:11 -0600 - -rpart (3.1.47-1) unstable; urgency=low - - * New upstream release - - * debian/control: Set (Build-)Depends: to current R version - * debian/control: Set Standards-Version: to current version - - -- Dirk Eddelbuettel Wed, 03 Nov 2010 11:30:17 -0500 - -rpart (3.1.46-1) unstable; urgency=low - - * New upstream release - - * debian/control: Set (Build-)Depends: to current R version - - -- Dirk Eddelbuettel Sun, 03 Jan 2010 09:38:28 -0600 - -rpart (3.1.45-2) unstable; urgency=low - - * Rebuilt for R 2.10.0 to work with new R-internal help file conversion - - * debian/control: Set (Build-)Depends: to current R version - * debian/control: Set Standards-Version: to current version - - -- Dirk Eddelbuettel Mon, 02 Nov 2009 20:35:35 -0600 - -rpart (3.1.45-1) unstable; urgency=low - - * New upstream release - - * debian/control: Set (Build-)Depends: to current R version - * debian/control: Set Standards-Version: to current version - - -- Dirk Eddelbuettel Wed, 05 Aug 2009 09:00:28 -0500 - -rpart (3.1.44-1) unstable; urgency=low - - * New upstream release - - * debian/control: Changed Section: to new section 'gnu-r' - - * debian/control: Set (Build-)Depends: to current R version - * debian/control: Set Standards-Version: to current version 3.8.1 - - -- Dirk Eddelbuettel Sun, 24 May 2009 09:20:39 -0500 - -rpart (3.1.43-1) unstable; urgency=low - - * New upstream release - - * debian/control: Set (Build-)Depends: to current R version 2.8.0 - - -- Dirk Eddelbuettel Tue, 10 Mar 2009 07:54:18 -0500 - -rpart (3.1.42-1) unstable; urgency=low - - * New upstream release - - * debian/control: Set (Build-)Depends: to current R version 2.8.0 - * debian/control: Set Standards-Version: to current version 3.8.0 - - -- Dirk Eddelbuettel Mon, 20 Oct 2008 21:13:07 -0500 - -rpart (3.1.41-1) unstable; urgency=low - - * New upstream release - - * debian/control: Set (Build-)Depends: to current R version - - -- Dirk Eddelbuettel Tue, 22 Apr 2008 14:34:29 -0500 - -rpart (3.1.39-1) unstable; urgency=low - - * New upstream release - - * debian/control: Set (Build-)Depends: to current R version - * debian/control: Set Standards-Version: to current version 3.7.3 - - -- Dirk Eddelbuettel Tue, 19 Feb 2008 17:03:37 -0600 - -rpart (3.1.38-1) unstable; urgency=low - - * New upstream release - * Built with R 2.6.0, so setting (Build-)Depends: to - 'r-base-(core|dev) >> 2.5.1' to prevent move to testing before R 2.6.0 - - -- Dirk Eddelbuettel Thu, 04 Oct 2007 16:49:07 -0500 - -rpart (3.1.37-1) unstable; urgency=low - - * New upstream release - * debian/control: Upgraded (Build-)Depends: to 'r-base-dev (>= 2.5.1)' - - -- Dirk Eddelbuettel Sat, 28 Jul 2007 18:54:05 -0500 - -rpart (3.1.36-1) unstable; urgency=low - - * New upstream release - * debian/control: Upgraded (Build-)Depends: to 'r-base-dev (>= 2.4.1)' - - -- Dirk Eddelbuettel Thu, 14 Jun 2007 20:57:48 -0500 - -rpart (3.1.35-1) unstable; urgency=low - - * New upstream release - - -- Dirk Eddelbuettel Mon, 26 Mar 2007 19:49:49 -0500 - -rpart (3.1.34-1) unstable; urgency=low - - * New upstream release - * debian/control: Upgraded (Build-)Depends: to 'r-base-dev (>= 2.4.1)' - - -- Dirk Eddelbuettel Mon, 1 Jan 2007 14:20:24 -0600 - -rpart (3.1.33-1) unstable; urgency=low - - * New upstream release - - * debian/rules: Simplified to cdbs-based one-liner sourcing r-cran.mk - (but overriding the default library location as this package is part - of the r-recommended bundle which install into /usr/lib/R/library) - * debian/control: Upgraded (Build-)Depends: to 'r-base-dev (>= 2.4.0)' - - -- Dirk Eddelbuettel Thu, 30 Nov 2006 20:32:32 -0600 - -rpart (3.1.32-1) unstable; urgency=low - - * New upstream release - - -- Dirk Eddelbuettel Fri, 29 Sep 2006 15:16:11 -0500 - -rpart (3.1.31-1) unstable; urgency=low - - * New upstream release for the upcoming R 2.4.0, built using the - R 2.4.0 releases candidate - * debian/control: Upgraded Build-Depends: to 'r-base-dev (>> 2.3.1)' - and Depends: to 'r-base-core (>> 2.3.1)' accordingly - - * debian/rules: Simplified to cdbs-based one-liner sourcing r-cran.mk - (but overriding the default library location as this package is part - of the r-recommended bundle which install into /usr/lib/R/library) - - * debian/control: Standards-Version: upgradeded to 3.7.2 - - -- Dirk Eddelbuettel Thu, 21 Sep 2006 17:52:01 -0500 - -rpart (3.1.29-1) unstable; urgency=low - - * New upstream release corresponding to R 2.3.0 - - * debian/control: Updated Build{,-Depends}: to r-base-core (>> 2.2.1) - * debian/watch: Updated to version=3 - - -- Dirk Eddelbuettel Tue, 18 Apr 2006 21:45:53 -0500 - -rpart (3.1.27-1) unstable; urgency=low - - * New upstream release - - -- Dirk Eddelbuettel Fri, 9 Dec 2005 21:37:18 -0600 - -rpart (3.1.26-1) unstable; urgency=low - - * New upstream release - - -- Dirk Eddelbuettel Thu, 8 Dec 2005 19:25:19 -0600 - -rpart (3.1.24-1) unstable; urgency=low - - * New upstream release - - * debian/control: Standards-Version: upgradeded to 3.6.2 - * debian/watch: Corrected regular expression - * debian/post{inst,rm}: No longer call R to update html index - - -- Dirk Eddelbuettel Wed, 7 Dec 2005 20:12:31 -0600 - -rpart (3.1.23-1) unstable; urgency=low - - * New upstream release - - -- Dirk Eddelbuettel Tue, 19 Apr 2005 21:49:32 -0500 - -rpart (3.1.22-1) unstable; urgency=low - - * New upstream release - - -- Dirk Eddelbuettel Thu, 3 Feb 2005 22:00:56 -0600 - -rpart (3.1.21-1) unstable; urgency=low - - * New upstream release - * debian/rules: Do not run 'R CMD check' on all architectures - - -- Dirk Eddelbuettel Sun, 21 Nov 2004 19:49:28 -0600 - -rpart (3.1.20-2) unstable; urgency=low - - * debian/control: Added Versioned Build-Depends: on - r-cran-survival (>= 2.13.2) (Closes: #276108) - - -- Dirk Eddelbuettel Mon, 11 Oct 2004 21:16:47 -0500 - -rpart (3.1.20-1) unstable; urgency=low - - * New upstream release - - * Built under R 2.0.0 - * debian/control: Updated Build-Depends: and Depends: accordingly - * debian/rules: Updated as required under R 2.0.0 and added 'R CMD check' - * debian/control: Added r-cran-survival to Build-Depends: to run check - - * debian/watch: Added watch file - * debian/post{inst,rm}: Added to rebuild html help index - - -- Dirk Eddelbuettel Thu, 7 Oct 2004 20:53:08 -0500 - -rpart (3.1.17-1) unstable; urgency=low - - * New upstream release - - -- Dirk Eddelbuettel Mon, 2 Aug 2004 17:25:20 -0500 - -rpart (3.1.16-1) unstable; urgency=low - - * New upstream release - - -- Dirk Eddelbuettel Mon, 7 Jun 2004 17:39:19 -0500 - -rpart (3.1.15-1) unstable; urgency=low - - * New upstream release for the upcoming R 1.9.0 release - * Built with 1.9.0 cvs dated 2004.02.29 (in package r-base_1.8.1.cvs.20040229) - - -- Dirk Eddelbuettel Thu, 4 Mar 2004 19:48:12 -0600 - -rpart (3.1.13-2) unstable; urgency=low - - * debian/control: Replaces r-recommended (<< 1.9.0), not just <= 1.8.1-1 - - -- Dirk Eddelbuettel Sun, 1 Feb 2004 17:34:27 -0600 - -rpart (3.1.13-1) unstable; urgency=low - - * Initial Debian Release as a standalone package rather than as part of - the r-recommended package built from the main r-base source package. - - -- Dirk Eddelbuettel Tue, 27 Jan 2004 20:59:07 -0600 + -- cran2deb4ubuntu Thu, 14 Jul 2011 10:07:39 -0400 diff -Nru rpart-4.1-13/debian/compat rpart-4.1-15/debian/compat --- rpart-4.1-13/debian/compat 2019-04-27 15:31:13.000000000 +0000 +++ rpart-4.1-15/debian/compat 2019-04-27 15:31:13.000000000 +0000 @@ -1 +1 @@ -9 +7 \ No newline at end of file diff -Nru rpart-4.1-13/debian/control rpart-4.1-15/debian/control --- rpart-4.1-13/debian/control 2019-04-27 15:31:13.000000000 +0000 +++ rpart-4.1-15/debian/control 2019-04-27 15:31:13.000000000 +0000 @@ -1,20 +1,24 @@ Source: rpart Section: gnu-r Priority: optional -Maintainer: Dirk Eddelbuettel -Build-Depends: debhelper (>= 7.0.0), r-base-dev (>= 3.4.3), cdbs, r-cran-survival (>= 2.13.2) -Standards-Version: 4.1.3 +Maintainer: cran2deb4ubuntu +Build-Depends: r-base-dev, xvfb, xauth, xfonts-base, r-base-core, + debhelper (>> 4.1.0), cdbs +Standards-Version: 3.9.1 +Homepage: https://github.com/bethatkinson/rpart, + https://cran.r-project.org/package=rpart Package: r-cran-rpart Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends}, ${R:Depends}, r-cran-survival -Replaces: r-recommended (<< 1.9.0) -Description: GNU R package for recursive partitioning and regression trees - This package provides functions to recursive partitioning and regression - trees. +Depends: r-base-core, ${shlibs:Depends} +Description: GNU R package "Recursive Partitioning and Regression + Trees" . - This package is part of the set of packages that are 'recommended' - by R Core and shipped with upstream source releases of R itself. + Recursive partitioning for classification, regression and survival + trees. An implementation of most of the functionality of the 1984 + book by Breiman, Friedman, Olshen and Stone. . - URL (of the S-Plus original): http://www.mayo.edu/hsr/Sfunc.html - + Author: Terry Therneau [aut], Beth Atkinson [aut, cre], Brian Ripley + [trl] (producer of the initial R port, maintainer 1999-2017) + . + Maintainer: Beth Atkinson diff -Nru rpart-4.1-13/debian/copyright rpart-4.1-15/debian/copyright --- rpart-4.1-13/debian/copyright 2019-04-27 15:31:13.000000000 +0000 +++ rpart-4.1-15/debian/copyright 2019-04-27 15:31:13.000000000 +0000 @@ -1,58 +1,19 @@ -This is the Debian GNU/Linux r-cran-rpart package of rpart, a -collection of functions for recursive partitioning and regression -trees. Rpart was written by Terry Therneau and Beth Atkinson, and -Brian Ripley provided the R port. +This Debian package of the GNU R package rpart was generated +automatically using cran2deb4ubuntu by cran2deb4ubuntu +. -This package was created by Dirk Eddelbuettel . -The sources were downloaded from - http://cran.us.r-project.org/src/contrib/ -and are also included in the (large) source tar archive of R itself at - http://cran.us.r-project.org/src/base/ +The original GNU R package is Copyright (C) 2019 Terry Therneau [aut], +Beth Atkinson [aut, cre], Brian Ripley [trl] (producer of the initial R +port, maintainer 1999-2017) and possibly others. -The package was renamed from its upstream name 'rpart' to 'r-cran-rpart' -to fit the pattern of CRAN (and non-CRAN) packages for R. +The original GNU R package is maintained by Beth Atkinson + and was obtained from: -Copyright (C) 1993 - 2008 Terry Therneau and Beth Atkinson -Portions Copyright (C) 1998 - 2008 Brian Ripley +http://cran.r-project.org/src/contrib -License: GPL-2 | license included below. +The GNU R package DESCRIPTION offers a Copyright licenses under the +terms of the license: GPL-2 . On a Debian GNU/Linux system, common +licenses are included in the directory /usr/share/common-licenses/. -On a Debian GNU/Linux system, the GPL-2 license is included in the file -/usr/share/common-licenses/GPL-2. - -For reference, the upstream DESCRIPTION [with lines broken to 80 cols] -file is included below: - - Package: rpart - Priority: recommended - Version: 3.1-13 - Date: March 2002 version of rpart, R version 2003-08-03 - Author: Terry M Therneau and Beth Atkinson . - R port by Brian Ripley . - Maintainer: Brian Ripley - Description: Recursive partitioning and regression trees - Title: Recursive partitioning - Depends: R (>= 1.8.0), survival - License: use under GPL2, or see file LICENCE - URL: S-PLUS 6.x original at http://www.mayo.edu/hsr/Sfunc.html - -as is the file LICENSE - - This package is released under the GPL version 2. It can also be used - under the following license, which is in some respects more liberal. - - - License: Copyright 2000 Mayo Foundation for Medical Education and - Research. This software is accepted by users "as is" and - without warranties or guarantees of any kind. It may be used - for research purposes or in relation to projects with - commercial applications or included in commercial packages, - but only so long as it is not relicensed as a stand-alone - program, and only so long as the first two sentences of this - paragraph (copyright notice and no warranty) are reproduced - with the software. - - Modifications for use with R (c) 1998-2001 B.D. Ripley under the - same conditions. - - +The DESCRIPTION file for the original GNU R package can be found in +/usr/lib/R/site-library/r-cran-rpart/DESCRIPTION diff -Nru rpart-4.1-13/debian/overrides rpart-4.1-15/debian/overrides --- rpart-4.1-13/debian/overrides 2019-04-27 15:31:13.000000000 +0000 +++ rpart-4.1-15/debian/overrides 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -r-cran-rpart: extra-license-file usr/lib/R/library/rpart/LICENCE diff -Nru rpart-4.1-13/debian/README.source rpart-4.1-15/debian/README.source --- rpart-4.1-13/debian/README.source 2019-04-27 15:31:13.000000000 +0000 +++ rpart-4.1-15/debian/README.source 1970-01-01 00:00:00.000000000 +0000 @@ -1,21 +0,0 @@ - -Explanation for binary files inside source package according to - http://lists.debian.org/debian-devel/2013/09/msg00332.html - -Files: data/car90.rda -Documentation: man/car90.Rd - -> Data on 111 cars, taken from pages 235--255, 281--285 and 287--288 of the - April 1990 \emph{Consumer Reports} Magazine. - -Files: data/cu.summary.rda -Documentation: man/cu.summary.Rd - -> The \code{cu.summary} data frame has 117 rows and 5 columns, - giving data on makes of cars taken from the April, 1990 issue of - \emph{Consumer Reports}. - -Files: data/stagec.rda -Documentation: man/stagec.Rd - -> A set of 146 patients with stage C prostate cancer, from a - study exploring the prognostic value of flow cytometry. - - -- Dirk Eddelbuettel , Sat, 20 Jan 2018 17:13:21 -0600 diff -Nru rpart-4.1-13/debian/rules rpart-4.1-15/debian/rules --- rpart-4.1-13/debian/rules 2019-04-27 15:31:13.000000000 +0000 +++ rpart-4.1-15/debian/rules 2019-04-27 15:31:13.000000000 +0000 @@ -1,7 +1,3 @@ #!/usr/bin/make -f -# -*- makefile -*- -# debian/rules file for the Debian/GNU Linux r-cran-rpart package -# Copyright 2004 - 2007 by Dirk Eddelbuettel - +debRreposname := cran include /usr/share/R/debian/r-cran.mk - diff -Nru rpart-4.1-13/debian/watch rpart-4.1-15/debian/watch --- rpart-4.1-13/debian/watch 2019-04-27 15:31:13.000000000 +0000 +++ rpart-4.1-15/debian/watch 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -version=3 -http://cran.r-project.org/src/contrib/rpart_([-0-9\.]*)\.tar.gz diff -Nru rpart-4.1-13/DESCRIPTION rpart-4.1-15/DESCRIPTION --- rpart-4.1-13/DESCRIPTION 2018-02-23 05:45:50.000000000 +0000 +++ rpart-4.1-15/DESCRIPTION 2019-04-12 14:32:39.000000000 +0000 @@ -1,7 +1,7 @@ Package: rpart Priority: recommended -Version: 4.1-13 -Date: 2018-02-23 +Version: 4.1-15 +Date: 2019-04-10 Authors@R: c(person("Terry", "Therneau", role = "aut", email = "therneau@mayo.edu"), person("Beth", "Atkinson", role = c("aut", "cre"), @@ -19,11 +19,14 @@ LazyData: yes ByteCompile: yes NeedsCompilation: yes -Packaged: 2018-02-23 05:39:52 UTC; ripley Author: Terry Therneau [aut], Beth Atkinson [aut, cre], Brian Ripley [trl] (producer of the initial R port, maintainer 1999-2017) Maintainer: Beth Atkinson Repository: CRAN -Date/Publication: 2018-02-23 05:45:50 UTC +URL: https://github.com/bethatkinson/rpart, + https://cran.r-project.org/package=rpart +BugReports: https://github.com/bethatkinson/rpart/issues +Packaged: 2019-04-11 15:59:38 UTC; atkinson +Date/Publication: 2019-04-12 14:32:39 UTC Binary files /tmp/tmpiXPHNF/qFZcGBgvMJ/rpart-4.1-13/inst/doc/longintro.pdf and /tmp/tmpiXPHNF/F6rKRqga10/rpart-4.1-15/inst/doc/longintro.pdf differ diff -Nru rpart-4.1-13/inst/doc/longintro.R rpart-4.1-15/inst/doc/longintro.R --- rpart-4.1-13/inst/doc/longintro.R 2018-02-23 05:39:51.000000000 +0000 +++ rpart-4.1-15/inst/doc/longintro.R 2019-04-11 15:59:37.000000000 +0000 @@ -109,13 +109,13 @@ ################################################### -### code chunk number 9: longintro.Rnw:999-1000 +### code chunk number 9: longintro.Rnw:998-999 ################################################### summary(fit1, cp = 0.06) ################################################### -### code chunk number 10: longintro.Rnw:1004-1008 +### code chunk number 10: longintro.Rnw:1003-1007 ################################################### fit3 <- rpart(Reliability ~ Price + Country + Mileage + Type, data=cu.summary, parms=list(split='information'), @@ -142,7 +142,7 @@ ################################################### -### code chunk number 12: longintro.Rnw:1211-1215 +### code chunk number 12: longintro.Rnw:1210-1214 ################################################### cars <- car90[, -match(c("Rim", "Tires", "Model2"), names(car90))] carfit <- rpart(Price/1000 ~ ., data=cars) @@ -151,13 +151,13 @@ ################################################### -### code chunk number 13: longintro.Rnw:1218-1219 +### code chunk number 13: longintro.Rnw:1217-1218 ################################################### temp <- carfit$cptable ################################################### -### code chunk number 14: longintro.Rnw:1243-1244 +### code chunk number 14: longintro.Rnw:1242-1243 ################################################### summary(carfit, cp = 0.1) @@ -183,7 +183,7 @@ ################################################### -### code chunk number 17: longintro.Rnw:1316-1322 +### code chunk number 17: longintro.Rnw:1315-1321 ################################################### cfit2 <- rpart(pgstat ~ age + eet + g2 + grade + gleason + ploidy, data = stagec) @@ -194,16 +194,16 @@ ################################################### -### code chunk number 18: longintro.Rnw:1492-1496 +### code chunk number 18: longintro.Rnw:1491-1495 ################################################### sfit <- rpart(skips ~ Opening + Solder + Mask + PadType + Panel, - data = solder, method = 'poisson', + data = solder.balance, method = 'poisson', control = rpart.control(cp = 0.05, maxcompete = 2)) sfit ################################################### -### code chunk number 19: longintro.Rnw:1507-1508 +### code chunk number 19: longintro.Rnw:1506-1507 ################################################### summary(sfit, cp = 0.1) @@ -222,7 +222,7 @@ ################################################### -### code chunk number 21: longintro.Rnw:1555-1558 +### code chunk number 21: longintro.Rnw:1554-1557 ################################################### require(survival) temp <- coxph(Surv(pgtime, pgstat) ~ 1, stagec) @@ -303,7 +303,7 @@ ################################################### -### code chunk number 29: longintro.Rnw:1780-1788 +### code chunk number 29: longintro.Rnw:1779-1787 ################################################### carfit <- rpart(Price/1000 ~ ., cars) carfit$cptable diff -Nru rpart-4.1-13/inst/doc/longintro.Rnw rpart-4.1-15/inst/doc/longintro.Rnw --- rpart-4.1-13/inst/doc/longintro.Rnw 2018-01-08 10:55:57.000000000 +0000 +++ rpart-4.1-15/inst/doc/longintro.Rnw 2018-06-21 18:52:25.000000000 +0000 @@ -416,7 +416,7 @@ The model is fit by using the {\rpart} function. The first argument of the function is a model formula, with the $\sim$ symbol standing for ``is modeled as''. -The \Co{print} function gives an abbreviated output, as for other S models. +The \Co{print} function gives an abbreviated output, as for other R models. The \Co{plot} and \Co{text} command plot the tree and then label the plot, the result is shown in figure \ref{fgini1}. <>= @@ -638,7 +638,7 @@ A sample of size 200 was generated accordingly and the procedure applied using the Gini index (see 3.2.1) to build the tree. -The S code to compute the simulated data and the fit are shown below. +The R code to compute the simulated data and the fit are shown below. <>= set.seed(1953) # An auspicious year n <- 200 @@ -863,13 +863,12 @@ The central fitting function is {\rpart}, whose main arguments are \begin{itemize} -\item \Co{formula}: the model formula, as in \Co{lm} and other S +\item \Co{formula}: the model formula, as in \Co{lm} and other R model fitting functions. The right hand side may contain both continuous and categorical (factor) terms. If the outcome $y$ has more than two levels, then categorical predictors must be fit by exhaustive enumeration, which can take a very long time. -\item \Co{data, weights, subset}: as for other S models. Weights are -not yet supported, and will be ignored if present. +\item \Co{data, weights, subset}: as for other R models. \item \Co{method}: the type of splitting rule to use. Options at this point are classification, anova, Poisson, and exponential. \item \Co{parms}: a list of method specific optional parameters. @@ -1461,11 +1460,11 @@ For \Co{method='poisson'}, the optional parameters list is the single number $k$, with a default value of 1. -\subsection{Example: solder data} -The solder data frame, as explained in the S help file, is a +\subsection{Example: solder.balance data} +The solder.balance data frame, as explained in the R help file, is a dataset with 900 observations which are the results of an experiment varying 5 factors relevant to the wave-soldering procedure -for mounting components on printed circuit boards. The response +for mounting components on printed circuit boards. The full version of the data (unbalanced) is available in the \Co{survival} package. The response variable, skips, is a count of how many solder skips appeared to a visual inspection. The other variables are listed below: @@ -1491,7 +1490,7 @@ <<>>= sfit <- rpart(skips ~ Opening + Solder + Mask + PadType + Panel, - data = solder, method = 'poisson', + data = solder.balance, method = 'poisson', control = rpart.control(cp = 0.05, maxcompete = 2)) sfit @ @@ -1521,7 +1520,7 @@ \begin{figure} \myfig{longintro-poisson1} - \caption{The first figure shows the solder data, fit with the + \caption{The first figure shows the solder.balance data, fit with the \Co{poisson} method, using a \Co{cp} value of 0.05. The second figure shows the same fit, but with a \Co{cp} value of 0.10. The function \Co{prune.rpart} was used to produce the smaller tree.} @@ -1798,7 +1797,7 @@ The definitions for classification trees can get the most complex, especially with respect to priors and loss matrices. In this section we lay out a simple example, in great detail. -(This was done to debug the S functions.) +(This was done to debug the R functions.) \begin{table} \centering Binary files /tmp/tmpiXPHNF/qFZcGBgvMJ/rpart-4.1-13/inst/doc/usercode.pdf and /tmp/tmpiXPHNF/F6rKRqga10/rpart-4.1-15/inst/doc/usercode.pdf differ diff -Nru rpart-4.1-13/inst/doc/usercode.Rnw rpart-4.1-15/inst/doc/usercode.Rnw --- rpart-4.1-13/inst/doc/usercode.Rnw 2018-01-08 10:55:57.000000000 +0000 +++ rpart-4.1-15/inst/doc/usercode.Rnw 2018-06-21 14:21:33.000000000 +0000 @@ -501,10 +501,78 @@ list(goodness=goodness, direction=direction) } @ + +\section{Categorical splits} +A common question from users concerns the splitting rules for a categorical +predictor. +If a categorical predictor has 5 levels, why don't we need to evaluate all +$2^4 = 16$ possible ways of splitting this into two groups? +The result is based on a fairly simple observation. +Think of the choice of a split as two problems: selection of a pair of +predicted values $p1$ and $p2$, and selection of the observations into +two groups $g1$ and $g2$. +Then the problem is to find +\begin{equation*} + \min_{g1, g2} \left[\min_{p1, p2} \sum_{i \in g1} E(y_i, p1) + + \sum_{i \in g2} E(y_i, p2) \right] +\end{equation*} +where $E$ is our error in prediction function. +The inner optimization is trivial for most problems, so we normally +don't think about it. +For a continuous $y$ variable for instance the error is +$E(y,p) = (y=p)^2$ and $p1$ is the mean $y$ value of all subjects in +group 1. + +Now reverse the order of the above equation, and instead think of the +``outer loop'' of the optimization as first a selection of the two predicted +values $p1$ and $p2$, followed by finding the optimal grouping for those +predicted values. +When the predictor $x$ is categorical this reduces to checking +whether $\sum E(y, p1)$ or $\sum E(y, p2)$ is smaller, +when summed over all the observations having each particular level of $x$, +and then assigning that level to group $g1$ or $g2$ accordingly. + +For squared error loss it is easy to see that this last step will be to +assign a subset to group $g1$ if mean($y$), over that subset, is closer to +$p1$ than to $p2$. +Thus, whatever the values of $p1$ and $p2$, the best split of the data +divides the groups according to low versus high values of $\overline y$. +If $x$ has $k$ levels, this shows that the only \emph{admissible} splits +are the $k-1$ groupings that first order the data according to the +within level means: as $p1$ and $p2$ range over the entire real plane these +are the only inner loop solutions that will arise. +Knowing this, the computer code does not have to try all values of +$p1$ and $p2$, it uses the first form of the minimum but can restrict the +outer loop to this small set of cases. + +Each different type of $y$ value and loss function requires it's own version +of the paragraph just above. For Poisson loss the optimal ordering turns out +to be by the within level event rate, for instance. +A similar partition can be shown for many loss functions. +For categorical $y$ and the Gini criterion the result is particularly +interesting. +Assume that the response $y$ has $m$ levels, and summarize each of the +distinct groups of observations corresponding to a categorical predictor +$x$ by it proportion vector: the proportion with $y=1$, proportion with $y=2$ +etc. If $x$ has $k$ levels, these proportions are $k$ points lying on the +$m$ dimensional simplex, +and the set of admissible splits are all partitions of these points by a +plane. For the information criterion the points lie on a curved surface in +$m$ space but again the admissible set are all partitions by a plane. +When $m=2$ the points lie on a 1-dimensional curve and the problem reduces to +ordering the groups by mean($y$). +For $m>2$ the total number of admissible partitions of $k$ points can be much +smaller than $2^k$ and efficient methods for enumerating +them have been described \cite{Sleumer}, but this has not been +incorporated into rpart. + \begin{thebibliography}{9} \bibitem{Chen07} Chen J, Yu K, Hsing A and Therneau TM. \emph{A partially linear tree-based regression model for assessing complex joint gene-gene and gene-environment effects}, Genet Epidemiol, 2007(3), 238-51. +\bibitem{Sleumer} Nora Sleumer, \emph{Hyperplane arrangements: construction + visualization and applications}, PhD dissertation, Swiss Federal Institute + of Technology, 1969. \end{thebibliography} \end{document} diff -Nru rpart-4.1-13/inst/NEWS.Rd rpart-4.1-15/inst/NEWS.Rd --- rpart-4.1-13/inst/NEWS.Rd 2018-01-08 10:55:57.000000000 +0000 +++ rpart-4.1-15/inst/NEWS.Rd 2018-06-21 18:45:12.000000000 +0000 @@ -1,5 +1,19 @@ \name{NEWS} \title{NEWS file for the rpart package} +\section{Changes in version 4.1-14}{ + \itemize{ + \item Changed example data solder to solder.balance. The full + version of the data is available in the survival package. + }} +\section{Changes in version 4.1-10}{ + \itemize{ + \item Rpart would fail with a formula having ~. - x on the right hand + side. A simple bookkeeping error in creating an index. + + \item Added a section to the vignette on user written functions, + which explains why and when one can avoid checking all 2^k + splits for a categorical predictor with k levels. +}} \section{Changes in version 4.1-0}{ \itemize{ Binary files /tmp/tmpiXPHNF/qFZcGBgvMJ/rpart-4.1-13/man/figures/rpart.png and /tmp/tmpiXPHNF/F6rKRqga10/rpart-4.1-15/man/figures/rpart.png differ diff -Nru rpart-4.1-13/man/post.rpart.Rd rpart-4.1-15/man/post.rpart.Rd --- rpart-4.1-13/man/post.rpart.Rd 2018-01-08 10:55:57.000000000 +0000 +++ rpart-4.1-15/man/post.rpart.Rd 2018-06-07 14:07:11.000000000 +0000 @@ -69,12 +69,13 @@ \code{\link{plot.rpart}}, \code{\link{rpart}}, \code{\link{text.rpart}}, \code{\link{abbreviate}} } \examples{ +\dontrun{ z.auto <- rpart(Mileage ~ Weight, car.test.frame) post(z.auto, file = "") # display tree on active device # now construct postscript version on file "pretty.ps" # with no title post(z.auto, file = "pretty.ps", title = " ") z.hp <- rpart(Mileage ~ Weight + HP, car.test.frame) -post(z.hp) +post(z.hp)} } \keyword{tree} diff -Nru rpart-4.1-13/man/residuals.rpart.Rd rpart-4.1-15/man/residuals.rpart.Rd --- rpart-4.1-13/man/residuals.rpart.Rd 2018-01-08 10:55:57.000000000 +0000 +++ rpart-4.1-15/man/residuals.rpart.Rd 2018-06-21 18:50:25.000000000 +0000 @@ -47,7 +47,7 @@ } \examples{ fit <- rpart(skips ~ Opening + Solder + Mask + PadType + Panel, - data = solder, method = "anova") + data = solder.balance, method = "anova") summary(residuals(fit)) plot(predict(fit),residuals(fit)) } diff -Nru rpart-4.1-13/man/solder.balance.Rd rpart-4.1-15/man/solder.balance.Rd --- rpart-4.1-13/man/solder.balance.Rd 1970-01-01 00:00:00.000000000 +0000 +++ rpart-4.1-15/man/solder.balance.Rd 2018-08-01 21:44:06.000000000 +0000 @@ -0,0 +1,57 @@ +\name{solder.balance} +\alias{solder.balance} +\alias{solder} +\title{Soldering of Components on Printed-Circuit Boards} +\description{ + The \code{solder.balance} data frame has 720 rows and 6 columns, representing + a balanced subset of a designed experiment varying 5 factors on the + soldering of components on printed-circuit boards. + + The \code{solder} data frame is the full version of the data with 900 + rows. It is located in both the rpart and the survival packages. +} +\usage{ +solder +} +\format{ +This data frame contains the following columns: +\describe{ +\item{\code{Opening}}{ +a factor with levels +\samp{L}, \samp{M} and \samp{S} +indicating the amount of clearance around the mounting pad. +} +\item{\code{Solder}}{ +a factor with levels +\samp{Thick} and \samp{Thin} +giving the thickness of the solder used. +} +\item{\code{Mask}}{ +a factor with levels +\samp{A1.5}, \samp{A3}, \samp{B3} and \samp{B6} +indicating the type and thickness of mask used. +} +\item{\code{PadType}}{ +a factor with levels \samp{D4}, \samp{D6}, \samp{D7}, \samp{L4}, +\samp{L6}, \samp{L7}, \samp{L8}, \samp{L9}, \samp{W4} and \samp{W9} +giving the size and geometry of the mounting pad. +} +\item{\code{Panel}}{ + \code{1:3} indicating the panel on a board being tested. +} +\item{\code{skips}}{ +a numeric vector giving the number of visible solder skips. +} +}} +\source{ + John M. Chambers and Trevor J. Hastie eds. (1992) + \emph{Statistical Models in S}, Wadsworth and Brooks/Cole, + Pacific Grove, CA. +} +\examples{ +fit <- rpart(skips ~ Opening + Solder + Mask + PadType + Panel, + data = solder.balance, method = "anova") +summary(residuals(fit)) +plot(predict(fit), residuals(fit)) +} +\keyword{datasets} diff -Nru rpart-4.1-13/man/solder.Rd rpart-4.1-15/man/solder.Rd --- rpart-4.1-13/man/solder.Rd 2018-01-08 10:55:57.000000000 +0000 +++ rpart-4.1-15/man/solder.Rd 1970-01-01 00:00:00.000000000 +0000 @@ -1,53 +0,0 @@ -\name{solder} -\alias{solder} -\title{Soldering of Components on Printed-Circuit Boards} -\description{ - The \code{solder} data frame has 720 rows and 6 columns, representing - a balanced subset of a designed experiment varying 5 factors on the - soldering of components on printed-circuit boards. -} -\usage{ -solder -} -\format{ -This data frame contains the following columns: -\describe{ -\item{\code{Opening}}{ -a factor with levels -\samp{L}, \samp{M} and \samp{S} -indicating the amount of clearance around the mounting pad. -} -\item{\code{Solder}}{ -a factor with levels -\samp{Thick} and \samp{Thin} -giving the thickness of the solder used. -} -\item{\code{Mask}}{ -a factor with levels -\samp{A1.5}, \samp{A3}, \samp{B3} and \samp{B6} -indicating the type and thickness of mask used. -} -\item{\code{PadType}}{ -a factor with levels \samp{D4}, \samp{D6}, \samp{D7}, \samp{L4}, -\samp{L6}, \samp{L7}, \samp{L8}, \samp{L9}, \samp{W4} and \samp{W9} -giving the size and geometry of the mounting pad. -} -\item{\code{Panel}}{ - \code{1:3} indicating the panel on a board being tested. -} -\item{\code{skips}}{ -a numeric vector giving the number of visible solder skips. -} -}} -\source{ - John M. Chambers and Trevor J. Hastie eds. (1992) - \emph{Statistical Models in S}, Wadsworth and Brooks/Cole, - Pacific Grove, CA. -} -\examples{ -fit <- rpart(skips ~ Opening + Solder + Mask + PadType + Panel, - data = solder, method = "anova") -summary(residuals(fit)) -plot(predict(fit), residuals(fit)) -} -\keyword{datasets} diff -Nru rpart-4.1-13/MD5 rpart-4.1-15/MD5 --- rpart-4.1-13/MD5 2018-02-23 05:45:50.000000000 +0000 +++ rpart-4.1-15/MD5 2019-04-12 14:32:39.000000000 +0000 @@ -1,5 +1,5 @@ -a2ab960d43519a6f7f188c01af695799 *ChangeLog -a3691c418d2e405fa80fbc68753bca50 *DESCRIPTION +3b4176696bc44cc7aebf4ac519e318ef *ChangeLog +420db2cd5f6efad401e53137b0e3cdbe *DESCRIPTION f84962269fb69b6bb09cb1428768818c *NAMESPACE cb1fe3dc41870fdc62bcaf87a40664b7 *R/formatg.R aa5afc20386b8705ba44f575f902efef *R/importance.R @@ -37,20 +37,21 @@ 57b709058f94a6984ed176f73619fc04 *R/text.rpart.R db89582c7e6162dc47cf510ac287e2fa *R/xpred.rpart.R d18273250bc74ffbab5434ce61ace179 *R/zzz.R -727534d3fa0e71043acdaf5fd9462cc0 *build/vignette.rds +74dcf91253dea2e75e814e12a19acf87 *README.md +94d190c957d0df117a5086fd3e8f134f *build/vignette.rds df645fee4bd6e992addee08c8be8207d *data/car.test.frame.csv.gz c074ec48b3561a633f13dfd4bfbcccd6 *data/car90.rda 7a3c271c4f6c1f77d49c2ba30d47dc4d *data/cu.summary.rda 818c4f591087a4c13cb23b2399f3e754 *data/kyphosis.tab.gz -6c2eebc6fa2c7e4642194227f43c94a7 *data/solder.tab.gz +154166f91a247e1f72d7407822d375dc *data/solder.rda 94bd043381c6584b0d5ddcccc8d65317 *data/stagec.rda -d90ecb38c94a2b9d6b84772daee39def *inst/NEWS.Rd -826935d99a3cb923990d55b0e9454f18 *inst/doc/longintro.R -d59df045075a1735e6d1bf2510b6a90a *inst/doc/longintro.Rnw -7681ad877ba64c7539288bf0682c5727 *inst/doc/longintro.pdf +e36d1159fbb665095329150471eff2fe *inst/NEWS.Rd +040ffcb1e83613f96a62749f9d59fb72 *inst/doc/longintro.R +dc89d00042336a816c0646604ce46677 *inst/doc/longintro.Rnw +199e1292b498e8e230a4b9dc93297971 *inst/doc/longintro.pdf e5598bd99b989df58f9fc60e19de4cd3 *inst/doc/usercode.R -cc52160d413d59a2967d5d201adf9319 *inst/doc/usercode.Rnw -79737df9c79d08161827212633a030ba *inst/doc/usercode.pdf +006fa83ca678038dcaa3a06cd638a4da *inst/doc/usercode.Rnw +eac36c596e08b6604e9507bffd2370d5 *inst/doc/usercode.pdf 2f7babeff23b6cceb61ce037fe6de63e *inst/po/de/LC_MESSAGES/R-rpart.mo 7ad78d2a8ada0d3125f4ad790e589f68 *inst/po/de/LC_MESSAGES/rpart.mo 76669c80c3833b7577f89f97ddbbcf41 *inst/po/en@quot/LC_MESSAGES/R-rpart.mo @@ -66,6 +67,7 @@ e0450e64bf2de18061586a864bc658ab *man/car.test.frame.Rd 98ea7b6fc62e9405041159c18d5692e6 *man/car90.Rd 6241667fb0ce6fe2bc7d3d0a37a8bcc6 *man/cu.summary.Rd +d74cc76989f52287fc09e889bfaa96cc *man/figures/rpart.png ab30e2577a5c24f4c664b9d485747e12 *man/kyphosis.Rd 602b5f41491ff93e3bf46897eb9359ac *man/labels.rpart.Rd 7c166b7c2f8dd9d22689fbdc42976e0e *man/meanvar.rpart.Rd @@ -73,12 +75,12 @@ 352a368fcbc13ca725f86cf132ca0191 *man/path.rpart.Rd 710f0842aa1f2113d349b5d26770fbcf *man/plot.rpart.Rd d7c54409916adaf84d994c6ae9dce40a *man/plotcp.Rd -f18aa6cabd259556c5849a6ff67f8420 *man/post.rpart.Rd +f2386420405d40613334e68a926eff40 *man/post.rpart.Rd 5780c103449e04942e4bc53b1922265d *man/predict.rpart.Rd 629dd3295d119a59a2120d91e46d3436 *man/print.rpart.Rd 9edf44f3d0a2044f7d07982414381bf1 *man/printcp.Rd 36beb0ff8cf3f9295e8f7b62096efbf8 *man/prune.rpart.Rd -3ab3477f5fcc0c909c8c61c1d6a18817 *man/residuals.rpart.Rd +073e688f4a5efec3adfda2e6aebfcb6c *man/residuals.rpart.Rd aad143edec2ff5dd9a7e6853e327ba56 *man/rpart-internal.Rd c440ea4fe650789d118b0123d07faf0e *man/rpart.Rd f43a133f1a39160b4eac19347e846cc2 *man/rpart.control.Rd @@ -86,7 +88,7 @@ 84ce535caa40aa22ac6a842bffaf7028 *man/rpart.object.Rd f364a44970b9b2e37591e3a2b17524b5 *man/rsq.rpart.Rd f3139570e979fb0b403f92970f1c2a2f *man/snip.rpart.Rd -fae067195d7bd1655dcf5cbd5ee7372b *man/solder.Rd +9523b25dc286b3b3c92a7d23e336339a *man/solder.balance.Rd 6fc2202a3a2a342721ab70e6d7294bb5 *man/stagec.Rd 7c3651cdaec8073662c301ced78c27c7 *man/summary.rpart.Rd e10820a2b12993e29d07ffc9020ac04b *man/text.rpart.Rd @@ -138,34 +140,34 @@ 24988d42395cb00107a90fdd190763ba *src/usersplit.c 70423182008e49143ecb0e011f119ad5 *src/xpred.c 67005b5abc64ec7fdad66b3b2a467e4e *src/xval.c -20596b624d8cf8ff3dac3c223d46b1e0 *tests/Examples/rpart-Ex.Rout.save -34b3b4e1f6cf35314967af2d1768fb29 *tests/backticks.R -79bde249393d198d00dfc887afdce3e0 *tests/backticks.Rout.save -65776c068119383dc66f9b9f2e263ae7 *tests/cost.R -da02049730f7e0f6455bff583340f0a8 *tests/cost.Rout.save -f921d285cb75090d730cca150625d958 *tests/cptest.R -4e1fc8289304d8d93043dd1ba1bb45dc *tests/cptest.Rout.save +0381ce3ee60d1c60520045732bedd400 *tests/Examples/rpart-Ex.Rout.save +3c9cefb3ec90dd48b027c25c6e25fbdf *tests/backticks.R +4769f669ce5ceb0069909d429e0bddaf *tests/backticks.Rout.save +08269cbdc2096d80ffdaf16c5a1930be *tests/cost.R +488192878e525a9d274adf47cda3e8fb *tests/cost.Rout.save +a2ee6a40c437ad7461508cf2d775d3c9 *tests/cptest.R +e49ead9217af8f1bdf0285070fe43d3e *tests/cptest.Rout.save 147bd7a75b6159f73762a034b106c82a *tests/data.stagec -a5278a5c64ed05ace4871a17c28e413d *tests/priors.R -5903cbf7f2a99832abae6b111b748440 *tests/priors.Rout.save -4956cb0af45f1934ac665210ed13d325 *tests/rescale.R -7a54f9209ad5702d35262aa0fb8835fc *tests/rescale.Rout.save -4bb9fa886719dfc62362936faf1af9da *tests/testall.R -e6fef2a9a68f68f0d7d4916546630ed0 *tests/testall.Rout.save -a15df59a775f9e2411c1cd2c97ed96b8 *tests/treble.R -a1ca865ec2cf17b1be7ece514f67ba7a *tests/treble.Rout.save -7e7d41cc7aa412965d65583b2cfa9fe7 *tests/treble2.R -f6265624fe5e21d0ae9341bafd1c6d15 *tests/treble2.Rout.save -600436b8f655fc991c1bf0e93d1f6448 *tests/treble3.R -7772396595d54a75b94335ef9db5c4e1 *tests/treble3.Rout.save -45fcb65fa9a878dd1283752ee9364701 *tests/treble4.R -aa27c919d18eef8babc42a320c4268f5 *tests/treble4.Rout.save +4fb8e02eb1f34b0af2954ac71db232b7 *tests/priors.R +2a6f34506e8392c7348793ffcb00ceba *tests/priors.Rout.save +1c607fe0ee0c270a60d45c2c433d1d05 *tests/rescale.R +36a0515cf8a2bde659c2e098c3b93419 *tests/rescale.Rout.save +ef620f0c032bcc8b7cb75e257f77e70e *tests/testall.R +e5b57d2364f97265c13aa143bea5df73 *tests/testall.Rout.save +b3acceba1efc1ccf895d1058c05965a2 *tests/treble.R +6459f757052f07f84d6563ff86096ba8 *tests/treble.Rout.save +ada09fd2351a6e8e5f6d5b499a4afb58 *tests/treble2.R +1ce1eda01e10209c60b4a89a10e2385f *tests/treble2.Rout.save +e8d841983082983abf9b4007b1cf5ab5 *tests/treble3.R +afacf88de75b125855b5cf84c0f4c083 *tests/treble3.Rout.save +1e28cbfaf8937047bbc8822542eb1e39 *tests/treble4.R +1939b120e30787f9863d924a85389b70 *tests/treble4.Rout.save 8d04b4c9493648509abc43f2bf39c88f *tests/usersplits.R -f77e1a5d706517b0d5bd7e1b9e56146f *tests/usersplits.Rout.save -0df9bf39f94eb8964a13864ec05cc34c *tests/xpred1.R -2b64cbbe3486b9a1f6711a171bd32432 *tests/xpred1.Rout.save -70cb426084d89403451876eaab6cdf0d *tests/xpred2.R -cfa74ef13112acaa095d92c62c399ab8 *tests/xpred2.Rout.save -d59df045075a1735e6d1bf2510b6a90a *vignettes/longintro.Rnw +d12f68dc450c411f0ba3cb2d5ba3398e *tests/usersplits.Rout.save +d50993af6bd3b8595873fe6bcfa9d0df *tests/xpred1.R +00dad0d273e8a842a732446b22137ab7 *tests/xpred1.Rout.save +367a8a621929802fe8eb29353dfd068b *tests/xpred2.R +417c66665be079c61ffdebae4773d652 *tests/xpred2.Rout.save +dc89d00042336a816c0646604ce46677 *vignettes/longintro.Rnw 39192a8870332037a2402ca7857001a6 *vignettes/refer.bib -cc52160d413d59a2967d5d201adf9319 *vignettes/usercode.Rnw +006fa83ca678038dcaa3a06cd638a4da *vignettes/usercode.Rnw diff -Nru rpart-4.1-13/README.md rpart-4.1-15/README.md --- rpart-4.1-13/README.md 1970-01-01 00:00:00.000000000 +0000 +++ rpart-4.1-15/README.md 2019-01-15 15:14:29.000000000 +0000 @@ -0,0 +1,22 @@ +# The `rpart` package Rpart logo + + +[![CRAN_STATUS_BADGE](http://www.r-pkg.org/badges/version/rpart)](https://CRAN.R-project.org/package=rpart) +[![Downloads](http://cranlogs.r-pkg.org/badges/rpart)](https://CRAN.R-project.org/package=rpart) +[![Travis-CI Build Status](https://travis-ci.org/bethatkinson/rpart.svg?branch=master)](https://travis-ci.org/bethatkinson/rpart) + + +This is the source code for the `rpart` package, which is a recommended package in R. +It gets posted to the comprehensive R archive (CRAN) as needed after undergoing a thorough testing. + + +## Overview + +The `rpart` code builds classification or regression models of a very +general structure using a two stage procedure; the resulting models can be +represented as binary trees. The package implements many of the ideas found +in the CART (Classification and Regression Trees) book and programs of +Breiman, Friedman, Olshen and Stone. Because CART is the trademarked name +of a particular software implementation of these ideas and `tree` was used +for the Splus routines of Clark and Pregibon, a different acronym - +Recursive PARTitioning or rpart - was chosen. diff -Nru rpart-4.1-13/tests/backticks.R rpart-4.1-15/tests/backticks.R --- rpart-4.1-13/tests/backticks.R 2018-01-08 10:55:57.000000000 +0000 +++ rpart-4.1-15/tests/backticks.R 2019-04-10 18:57:36.000000000 +0000 @@ -1,6 +1,7 @@ ## allow backticks in rpart.matrix: see ## https://stat.ethz.ch/pipermail/r-help/2012-May/314081.html +set.seed(10) library(rpart) Iris <- iris names(Iris) <- sub(".", " ", names(iris), fixed=TRUE) diff -Nru rpart-4.1-13/tests/backticks.Rout.save rpart-4.1-15/tests/backticks.Rout.save --- rpart-4.1-13/tests/backticks.Rout.save 2018-01-08 10:55:58.000000000 +0000 +++ rpart-4.1-15/tests/backticks.Rout.save 2019-04-10 20:44:16.000000000 +0000 @@ -1,8 +1,7 @@ -R version 2.15.0 (2012-03-30) -Copyright (C) 2012 The R Foundation for Statistical Computing -ISBN 3-900051-07-0 -Platform: x86_64-unknown-linux-gnu (64-bit) +R Under development (unstable) (2019-04-05 r76323) -- "Unsuffered Consequences" +Copyright (C) 2019 The R Foundation for Statistical Computing +Platform: x86_64-pc-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. @@ -19,6 +18,7 @@ > ## allow backticks in rpart.matrix: see > ## https://stat.ethz.ch/pipermail/r-help/2012-May/314081.html > +> set.seed(10) > library(rpart) > Iris <- iris > names(Iris) <- sub(".", " ", names(iris), fixed=TRUE) @@ -36,4 +36,4 @@ > > proc.time() user system elapsed - 0.234 0.064 0.328 + 0.105 0.017 0.116 diff -Nru rpart-4.1-13/tests/cost.R rpart-4.1-15/tests/cost.R --- rpart-4.1-13/tests/cost.R 2018-01-08 10:55:58.000000000 +0000 +++ rpart-4.1-15/tests/cost.R 2019-04-10 18:57:48.000000000 +0000 @@ -2,6 +2,7 @@ require(survival) aeq <- function(x,y, ...) all.equal(as.vector(x), as.vector(y), ...) +set.seed(10) # # Check out using costs # diff -Nru rpart-4.1-13/tests/cost.Rout.save rpart-4.1-15/tests/cost.Rout.save --- rpart-4.1-13/tests/cost.Rout.save 2018-01-08 10:55:57.000000000 +0000 +++ rpart-4.1-15/tests/cost.Rout.save 2019-04-10 20:44:17.000000000 +0000 @@ -1,8 +1,7 @@ -R version 2.15.0 (2012-03-30) -Copyright (C) 2012 The R Foundation for Statistical Computing -ISBN 3-900051-07-0 -Platform: x86_64-unknown-linux-gnu (64-bit) +R Under development (unstable) (2019-04-05 r76323) -- "Unsuffered Consequences" +Copyright (C) 2019 The R Foundation for Statistical Computing +Platform: x86_64-pc-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. @@ -19,9 +18,9 @@ > library(rpart) > require(survival) Loading required package: survival -Loading required package: splines > aeq <- function(x,y, ...) all.equal(as.vector(x), as.vector(y), ...) > +> set.seed(10) > # > # Check out using costs > # @@ -48,4 +47,4 @@ > > proc.time() user system elapsed - 0.288 0.067 0.407 + 0.693 0.051 0.738 diff -Nru rpart-4.1-13/tests/cptest.R rpart-4.1-15/tests/cptest.R --- rpart-4.1-13/tests/cptest.R 2018-01-08 10:55:58.000000000 +0000 +++ rpart-4.1-15/tests/cptest.R 2019-04-10 18:58:04.000000000 +0000 @@ -9,6 +9,8 @@ # tdata = 20 copies of "mystate" # trees with tdata and trees with mystate should be the same (they are) # except for the n's +set.seed(10) + tdata <- rbind(mystate, mystate, mystate, mystate, mystate) tdata <- rbind(tdata, tdata, tdata, tdata) tfit1 <- rpart(income ~ population + illiteracy + murder + hs.grad + region, diff -Nru rpart-4.1-13/tests/cptest.Rout.save rpart-4.1-15/tests/cptest.Rout.save --- rpart-4.1-13/tests/cptest.Rout.save 2018-01-08 10:55:57.000000000 +0000 +++ rpart-4.1-15/tests/cptest.Rout.save 2019-04-10 20:44:18.000000000 +0000 @@ -1,8 +1,7 @@ -R version 2.15.0 (2012-03-30) -Copyright (C) 2012 The R Foundation for Statistical Computing -ISBN 3-900051-07-0 -Platform: x86_64-unknown-linux-gnu (64-bit) +R Under development (unstable) (2019-04-05 r76323) -- "Unsuffered Consequences" +Copyright (C) 2019 The R Foundation for Statistical Computing +Platform: x86_64-pc-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. @@ -27,6 +26,8 @@ > # tdata = 20 copies of "mystate" > # trees with tdata and trees with mystate should be the same (they are) > # except for the n's +> set.seed(10) +> > tdata <- rbind(mystate, mystate, mystate, mystate, mystate) > tdata <- rbind(tdata, tdata, tdata, tdata) > tfit1 <- rpart(income ~ population + illiteracy + murder + hs.grad + region, @@ -41,4 +42,4 @@ > > proc.time() user system elapsed - 0.237 0.049 0.324 + 0.106 0.019 0.119 diff -Nru rpart-4.1-13/tests/Examples/rpart-Ex.Rout.save rpart-4.1-15/tests/Examples/rpart-Ex.Rout.save --- rpart-4.1-13/tests/Examples/rpart-Ex.Rout.save 2018-01-08 10:55:58.000000000 +0000 +++ rpart-4.1-15/tests/Examples/rpart-Ex.Rout.save 2019-04-11 15:58:43.000000000 +0000 @@ -1,6 +1,6 @@ -R Under development (unstable) (2017-03-10 r72326) -- "Unsuffered Consequences" -Copyright (C) 2017 The R Foundation for Statistical Computing +R Under development (unstable) (2019-04-05 r76323) -- "Unsuffered Consequences" +Copyright (C) 2019 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. @@ -23,6 +23,7 @@ > library('rpart') > > base::assign(".oldSearch", base::search(), pos = 'CheckExEnv') +> base::assign(".old_wd", base::getwd(), pos = 'CheckExEnv') > cleanEx() > nameEx("car.test.frame") > ### * car.test.frame @@ -43,10 +44,10 @@ n= 60 CP nsplit rel error xerror xstd -1 0.59534912 0 1.0000000 1.0319924 0.17931937 -2 0.13452819 1 0.4046509 0.4875114 0.07613003 -3 0.01282843 2 0.2701227 0.3802248 0.06685452 -4 0.01000000 3 0.2572943 0.3945980 0.06605572 +1 0.59534912 0 1.0000000 1.0337818 0.18046532 +2 0.13452819 1 0.4046509 0.5836606 0.10900973 +3 0.01282843 2 0.2701227 0.4409221 0.08652804 +4 0.01000000 3 0.2572943 0.4415805 0.08663003 Variable importance Weight @@ -255,13 +256,15 @@ > > ### ** Examples > -> z.auto <- rpart(Mileage ~ Weight, car.test.frame) -> post(z.auto, file = "") # display tree on active device -> # now construct postscript version on file "pretty.ps" -> # with no title -> post(z.auto, file = "pretty.ps", title = " ") -> z.hp <- rpart(Mileage ~ Weight + HP, car.test.frame) -> post(z.hp) +> ## Not run: +> ##D z.auto <- rpart(Mileage ~ Weight, car.test.frame) +> ##D post(z.auto, file = "") # display tree on active device +> ##D # now construct postscript version on file "pretty.ps" +> ##D # with no title +> ##D post(z.auto, file = "pretty.ps", title = " ") +> ##D z.hp <- rpart(Mileage ~ Weight + HP, car.test.frame) +> ##D post(z.hp) +> ## End(Not run) > > > @@ -547,16 +550,16 @@ * denotes terminal node 1) root 75 50 setosa (0.33333333 0.33333333 0.33333333) - 2) Petal.Length< 2.35 25 0 setosa (1.00000000 0.00000000 0.00000000) * - 3) Petal.Length>=2.35 50 25 versicolor (0.00000000 0.50000000 0.50000000) - 6) Petal.Width< 1.65 27 2 versicolor (0.00000000 0.92592593 0.07407407) * - 7) Petal.Width>=1.65 23 0 virginica (0.00000000 0.00000000 1.00000000) * + 2) Petal.Length< 2.5 25 0 setosa (1.00000000 0.00000000 0.00000000) * + 3) Petal.Length>=2.5 50 25 versicolor (0.00000000 0.50000000 0.50000000) + 6) Petal.Length< 4.85 26 2 versicolor (0.00000000 0.92307692 0.07692308) * + 7) Petal.Length>=4.85 24 1 virginica (0.00000000 0.04166667 0.95833333) * > table(predict(fit, iris[-sub,], type = "class"), iris[-sub, "Species"]) setosa versicolor virginica setosa 25 0 0 - versicolor 0 23 2 - virginica 0 2 23 + versicolor 0 22 1 + virginica 0 3 24 > > > @@ -628,10 +631,10 @@ n= 60 CP nsplit rel error xerror xstd -1 0.595349 0 1.00000 1.03199 0.179319 -2 0.134528 1 0.40465 0.48751 0.076130 -3 0.012828 2 0.27012 0.38022 0.066855 -4 0.010000 3 0.25729 0.39460 0.066056 +1 0.595349 0 1.00000 1.03378 0.180465 +2 0.134528 1 0.40465 0.58366 0.109010 +3 0.012828 2 0.27012 0.44092 0.086528 +4 0.010000 3 0.25729 0.44158 0.086630 > ## Not run: > ##D Regression tree: > ##D rpart(formula = Mileage ~ Weight, data = car.test.frame) @@ -682,7 +685,7 @@ > ### ** Examples > > fit <- rpart(skips ~ Opening + Solder + Mask + PadType + Panel, -+ data = solder, method = "anova") ++ data = solder.balance, method = "anova") > summary(residuals(fit)) Min. 1st Qu. Median Mean 3rd Qu. Max. -13.8000 -1.0361 -0.6833 0.0000 0.9639 16.2000 @@ -744,10 +747,10 @@ n= 60 CP nsplit rel error xerror xstd -1 0.595349 0 1.00000 1.03199 0.179319 -2 0.134528 1 0.40465 0.48751 0.076130 -3 0.012828 2 0.27012 0.38022 0.066855 -4 0.010000 3 0.25729 0.39460 0.066056 +1 0.595349 0 1.00000 1.03378 0.180465 +2 0.134528 1 0.40465 0.58366 0.109010 +3 0.012828 2 0.27012 0.44092 0.086528 +4 0.010000 3 0.25729 0.44158 0.086630 > > > @@ -777,20 +780,20 @@ > > > cleanEx() -> nameEx("solder") -> ### * solder +> nameEx("solder.balance") +> ### * solder.balance > > flush(stderr()); flush(stdout()) > -> ### Name: solder +> ### Name: solder.balance > ### Title: Soldering of Components on Printed-Circuit Boards -> ### Aliases: solder +> ### Aliases: solder.balance solder > ### Keywords: datasets > > ### ** Examples > > fit <- rpart(skips ~ Opening + Solder + Mask + PadType + Panel, -+ data = solder, method = "anova") ++ data = solder.balance, method = "anova") > summary(residuals(fit)) Min. 1st Qu. Median Mean 3rd Qu. Max. -13.8000 -1.0361 -0.6833 0.0000 0.9639 16.2000 @@ -863,10 +866,10 @@ n= 60 CP nsplit rel error xerror xstd -1 0.59534912 0 1.0000000 1.0319924 0.17931937 -2 0.13452819 1 0.4046509 0.4875114 0.07613003 -3 0.01282843 2 0.2701227 0.3802248 0.06685452 -4 0.01000000 3 0.2572943 0.3945980 0.06605572 +1 0.59534912 0 1.0000000 1.0337818 0.18046532 +2 0.13452819 1 0.4046509 0.5836606 0.10900973 +3 0.01282843 2 0.2701227 0.4409221 0.08652804 +4 0.01000000 3 0.2572943 0.4415805 0.08663003 Variable importance Weight @@ -911,8 +914,8 @@ CP nsplit rel error xerror xstd 1 0.17647059 0 1.0000000 1.000000 0.2155872 -2 0.01960784 1 0.8235294 1.352941 0.2387187 -3 0.01000000 4 0.7647059 1.294118 0.2354756 +2 0.01960784 1 0.8235294 1.058824 0.2200975 +3 0.01000000 4 0.7647059 1.058824 0.2200975 Variable importance Start Age Number @@ -1033,12 +1036,12 @@ > xerr <- (xmat - car.test.frame$Mileage)^2 > apply(xerr, 2, sum) # cross-validated error estimate 0.79767456 0.28300396 0.04154257 0.01132626 - 1423.9568 740.4845 544.3925 536.6344 + 1396.6687 773.1546 577.8990 594.1341 > > # approx same result as rel. error from printcp(fit) > apply(xerr, 2, sum)/var(car.test.frame$Mileage) 0.79767456 0.28300396 0.04154257 0.01132626 - 62.02162 32.25242 23.71147 23.37355 + 60.83306 33.67539 25.17087 25.87800 > printcp(fit) Regression tree: @@ -1052,18 +1055,19 @@ n= 60 CP nsplit rel error xerror xstd -1 0.595349 0 1.00000 1.03199 0.179319 -2 0.134528 1 0.40465 0.48751 0.076130 -3 0.012828 2 0.27012 0.38022 0.066855 -4 0.010000 3 0.25729 0.39460 0.066056 +1 0.595349 0 1.00000 1.03378 0.180465 +2 0.134528 1 0.40465 0.58366 0.109010 +3 0.012828 2 0.27012 0.44092 0.086528 +4 0.010000 3 0.25729 0.44158 0.086630 > > > > ### *