Skip to content

Control Polygon Reduction

0packages depend
5.1Kdownloads / year
72.5%test coverage
13/13flavors OK

Overview

About

Implementation of the Control Polygon Reduction and Control Net Reduction methods for finding parsimonious B-spline regression models.

Changes in 0.4.1

Bug fixes:

  • plot_bs() builds the x-axis correctly for a basis built with values outside of the boundary knots.

Other fixes:

  • Spelling and gammar fixes in documentation and vignettes.

Non-User Visible Changes

  • C++ error handling now uses Rcpp::stop() for consistent error signaling. (Thanks to @Enchufa2, re #63)

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 9.7 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK12 OK2026-04-25
  • NOTE12 OK, 2 NOTE2026-04-22
  • ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
Show 1 earlier changeHide 1 earlier change
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.4.1
READMEYes · 378 wordsVignettesYes · 2 · dynamicNEWSYes · 100% structured · mentions 0.4.1Citation fileNoWebsiteYes · pkgdown
Help pages
42 (1 internal)includes a package overview page
Examples that run
95%35 run in a plain check · 2 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
95%
Documented parameters
95%
Return-value docs
90%
Help pages citing references
14%

Downloads

5.1K
CRAN downloads in the past year
Rank #9,159 · ~14/day · ~427/mo
Daily download trend is not available in this view yet.
44030 days
1K90 days
5.1K1 year
Compare downloads with other packages →
Also on390 r2u4 autocran

Repository

2Stars
1Forks
8Open issues
0Open PRs
0Releases
684Commits
2Commit identities
684 commits · Last activity 2026-01-07 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
16
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2022-01-31 · 22026-07-07 · 2
PracticesBeta

9 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/dewittpe/cpr on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-01-08 · The repository has a site deploy workflow

pkgdown site last built 2026-01-08

Coverage (1)
Coverage reporting (Codecov)
Reproducibility and dev environment (2)
data-raw/Makefile
Show all practicesHide 1 practice
CRAN release process (1)
cran-comments.md
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
12 external dependencies (excludes base and recommended)

Installing cpr adds 52 packages (28 with compiled code, 49 MB of source tarballs). Heaviest: ggplot2 6.0 MB, bslib 5.6 MB, lme4 4.1 MB.

Depends (1)
R >= 3.5.0
LinkingTo (2)
Suggests (5)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (3)
Author, Maintainer since 0.2.3 (2017)
Thesis advisor
Thesis advisor
Releases (4)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.4.1Latest
    record
    2026-01-08 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.4.0
    record
    2024-02-15 · diff ↗ ·
    removed 1 export
    loglikelihood
    added 6 exports
    d_order_statistic, influence_of_iknots, insert_a_knot, p_order_statistic, sign_changes, wiegh_iknots
  • 0.3.0
    record
    2023-11-29 · diff ↗ ·
    removed 6 exports
    is.cpr_bs, is.cpr_bt, is.cpr_cn, is.cpr_cnr, is.cpr_cp, is.cpr_cpr
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • 0.2.3
    record
    2017-03-07
  • R
    R 3.3.0 released · 2016-05-03

Package metadata

First published
2017-03-07
Total releases
4 / 9 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 3.5.0
Bundled data
277 KB / 2 files
Download size
1.6 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("cpr")
DeWitt, P., Carlson, N., & MaWhinney, S. (2026). cpr: Control Polygon Reduction (Version 0.4.1) [Computer software]. https://doi.org/10.32614/CRAN.package.cpr

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for cpr version 0.4.1 [Data set]. HJJB, LLC. Data release v2026-10-20. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-20, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy