Skip to content

cpop

1.0.9

Detection of Multiple Changes in Slope in Univariate Time-Series

0packages depend
3.7Kdownloads / year
57.8%test coverage
11/13checks pass

Overview

About
Maintained by Daniel GroseFirst published 2022-03-117 releasesCRAN page ↗

Detects multiple changes in slope using the CPOP dynamic programming approach of Fearnhead, Maidstone, and Letchford (2019) doi:10.1080/10618600.2018.1512868. This method finds the best continuous piecewise linear fit to data under a criterion that measures fit to data using the residual sum of squares, but penalizes complexity based on an L0 penalty on changes in slope. Further information regarding the use of this package with detailed examples can be found in Fearnhead and Grose (2024) doi:10.18637/jss.v109.i07.

Install

Health

CRAN checks
2NOTE11OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
Slowest check: 4.0 min · r-devel-windows-x86_64
Code health
Yes
Tests · ratio 0.39
57.8%
Coverage · measured lines
100%
Documentation · exports
8
Dependencies · direct
Check history
  • NOTE2026-07-11
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-04-22
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
Show 1 earlier snapshots
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
85%
Documented parameters
77%
Return-value docs
100%
References docs
100%

Downloads

3.7K
CRAN downloads in the past year
Rank #7,042 · ~10/day · ~304/mo
Daily download trend is not available in this view yet.
24530 days
1.2K90 days
3.7K1 year
Compare downloads with other packages →
Also on383 r2u17 autocran

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)
Depends (3)
R >= 4.1.0cropspacman
LinkingTo (1)
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Package Timeline

7 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 1.0.9Latest
    2026-05-29 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.8
    2025-06-11 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.0.7
    2024-05-29 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.6
    2022-11-21 · diff ↗
  • 1.0.4
    2022-11-11 · diff ↗
  • 1.0.3
    2022-08-23 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.0.0
    2022-03-11
  • R
    R 4.1.0 released · 2021-05-18

Package metadata

First published
2022-03-11
Total releases
7 / 4 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 4.1.0
Bundled data
8.5 KB / 1 file
Download size
82 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("cpop")
Grose, D., & Fearnhead, P. (2026). cpop: Detection of Multiple Changes in Slope in Univariate Time-Series (Version 1.0.9) [Computer software]. https://doi.org/10.32614/CRAN.package.cpop

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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 cpop version 1.0.9 [Data set]. HJJB, LLC. Data release v2026-08-16. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-16, 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