r2py_rpart
Copyright (C) 2026 Yufei Cai and Jun Li, University of Notre Dame

This package is a derivative work of the R package `rpart`
("Recursive Partitioning and Regression Trees"):

    https://github.com/bethatkinson/rpart
    https://cran.r-project.org/package=rpart

rpart is Copyright (C) the R Core Team and:
    Terry M. Therneau      (author)
    Beth Atkinson          (author, maintainer)
    Brian D. Ripley         (translator, producer of the initial R port)

r2py_rpart retains rpart's original C sources essentially unmodified:
of the 35 C source and header files, 30 are byte-identical to the
originals and 5 differ only in their #include directives, which were
redirected from R's headers to the standalone replacements in
r_fake_headers/. Every such change is marked inline with a [FAKE_R]
comment. rpart's R-level functions were translated into Python,
following the algorithms and structure of the original as closely as
practical. No code from the R interpreter itself, or from any R package
other than rpart, is included.

rpart is distributed under the GNU General Public License, version 2
or version 3, at the recipient's option ("GPL-2.0-only OR
GPL-3.0-only"). In keeping with those terms, r2py_rpart is likewise
distributed under GPL-2.0-only OR GPL-3.0-only. The full texts are in
LICENSE (version 2) and LICENSE-GPL3 (version 3) in this directory.
